[PATCH] httpapi: Fix a memory leak (Valgrind).

Sven Baars sven.wine at gmail.com
Thu Sep 26 07:18:25 CDT 2019


Signed-off-by: Sven Baars <sven.wine at gmail.com>
---
 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;
 }
 
-- 
2.17.1




More information about the wine-devel mailing list