From c22e98fad07599ede9384f70545887f6bf9bf71e Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Mon, 14 Aug 2006 12:04:41 +0200 Subject: [PATCH] secur32: Fix heap error. --- dlls/secur32/dispatcher.c | 1 - dlls/secur32/ntlm.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/secur32/dispatcher.c b/dlls/secur32/dispatcher.c index 5e26d41456f..d9dfeef9b5c 100644 --- a/dlls/secur32/dispatcher.c +++ b/dlls/secur32/dispatcher.c @@ -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); diff --git a/dlls/secur32/ntlm.c b/dlls/secur32/ntlm.c index fb9495b9c82..1b0bd8c3443 100644 --- a/dlls/secur32/ntlm.c +++ b/dlls/secur32/ntlm.c @@ -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; }