Commit c22e98fa authored by Kai Blin's avatar Kai Blin Committed by Alexandre Julliard

secur32: Fix heap error.

parent 3cf9c85f
......@@ -264,7 +264,6 @@ void cleanup_helper(PNegoHelper helper)
HeapFree(GetProcessHeap(), 0, helper->password);
HeapFree(GetProcessHeap(), 0, helper->com_buf);
HeapFree(GetProcessHeap(), 0, helper->session_key);
/* closing stdin will terminate ntlm_auth */
close(helper->pipe_out);
......
......@@ -1240,6 +1240,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_FreeCredentialsHandle(
PNegoHelper helper = (PNegoHelper) phCredential->dwLower;
phCredential->dwUpper = 0;
phCredential->dwLower = 0;
HeapFree(GetProcessHeap(), 0, helper->session_key);
cleanup_helper(helper);
ret = SEC_E_OK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment