From 306048bdeb6e38188e91ad3dbde81a37782dc271 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Mon, 16 Oct 2006 10:13:26 +0200 Subject: [PATCH] secur32: Stop leaking the session key memory. --- dlls/secur32/dispatcher.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/secur32/dispatcher.c b/dlls/secur32/dispatcher.c index 27c1f9af627..7b5d6af8156 100644 --- a/dlls/secur32/dispatcher.c +++ b/dlls/secur32/dispatcher.c @@ -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);