httpapi: Fix a memory leak (Valgrind).

Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sven Baars 2019-09-26 14:18:25 +02:00 committed by Alexandre Julliard
parent 142ef8a7e8
commit bbd1e80d81
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}