Hans Leidekker : wininet: Fix a memory leak.

Alexandre Julliard julliard at winehq.org
Tue Jan 5 11:37:52 CST 2010


Module: wine
Branch: master
Commit: e5180c101bf760e4ab6e5775767572bfe34df5fc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e5180c101bf760e4ab6e5775767572bfe34df5fc

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Tue Jan  5 14:47:37 2010 +0100

wininet: Fix a memory leak.

Found by Valgrind.

---

 dlls/wininet/http.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index 70f5f6a..5b1bb22 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;
                         }




More information about the wine-cvs mailing list