secur32: Fix heap error.

This commit is contained in:
Kai Blin 2006-08-14 12:04:41 +02:00 committed by Alexandre Julliard
parent 3cf9c85f83
commit c22e98fad0
2 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,6 @@ void cleanup_helper(PNegoHelper helper)
HeapFree(GetProcessHeap(), 0, helper->password); HeapFree(GetProcessHeap(), 0, helper->password);
HeapFree(GetProcessHeap(), 0, helper->com_buf); HeapFree(GetProcessHeap(), 0, helper->com_buf);
HeapFree(GetProcessHeap(), 0, helper->session_key);
/* closing stdin will terminate ntlm_auth */ /* closing stdin will terminate ntlm_auth */
close(helper->pipe_out); close(helper->pipe_out);

View File

@ -1240,6 +1240,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_FreeCredentialsHandle(
PNegoHelper helper = (PNegoHelper) phCredential->dwLower; PNegoHelper helper = (PNegoHelper) phCredential->dwLower;
phCredential->dwUpper = 0; phCredential->dwUpper = 0;
phCredential->dwLower = 0; phCredential->dwLower = 0;
HeapFree(GetProcessHeap(), 0, helper->session_key);
cleanup_helper(helper); cleanup_helper(helper);
ret = SEC_E_OK; ret = SEC_E_OK;
} }