secur32: Stop leaking the session key memory.

This commit is contained in:
Kai Blin 2006-10-16 10:13:26 +02:00 committed by Alexandre Julliard
parent a149839631
commit 306048bdeb
1 changed files with 2 additions and 1 deletions

View File

@ -256,9 +256,10 @@ void cleanup_helper(PNegoHelper helper)
TRACE("Killing helper %p\n", helper);
if( (helper == NULL) || (helper->helper_pid == 0))
return;
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);