Sven Baars : httpapi: Fix a memory leak (Valgrind).

Alexandre Julliard julliard at winehq.org
Thu Sep 26 15:51:20 CDT 2019


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

Author: Sven Baars <sven.wine at gmail.com>
Date:   Thu Sep 26 14:18:25 2019 +0200

httpapi: Fix a memory leak (Valgrind).

Signed-off-by: Sven Baars <sven.wine at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/httpapi/httpapi_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/httpapi/httpapi_main.c b/dlls/httpapi/httpapi_main.c
index 0d6895b998..03511d6c9f 100644
--- a/dlls/httpapi/httpapi_main.c
+++ b/dlls/httpapi/httpapi_main.c
@@ -230,6 +230,7 @@ static ULONG add_url(HANDLE queue, const WCHAR *urlW, HTTP_URL_CONTEXT context)
             offsetof(struct http_add_url_params, url[len]), NULL, 0, NULL, &ovl))
         ret = GetLastError();
     CloseHandle(ovl.hEvent);
+    heap_free(params);
     return ret;
 }
 




More information about the wine-cvs mailing list