From e5180c101bf760e4ab6e5775767572bfe34df5fc Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Tue, 5 Jan 2010 14:47:37 +0100 Subject: [PATCH] wininet: Fix a memory leak. Found by Valgrind. --- dlls/wininet/http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 70f5f6a3161..5b1bb22db80 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -3592,6 +3592,7 @@ static DWORD HTTP_HttpSendRequestW(http_request_t *lpwhr, LPCWSTR lpszHeaders, lpwhr->lpHttpSession->lpszPassword, Host->lpszValue)) { + HeapFree(GetProcessHeap(), 0, requestString); loop_next = TRUE; break; }