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:
parent
142ef8a7e8
commit
bbd1e80d81
|
@ -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))
|
offsetof(struct http_add_url_params, url[len]), NULL, 0, NULL, &ovl))
|
||||||
ret = GetLastError();
|
ret = GetLastError();
|
||||||
CloseHandle(ovl.hEvent);
|
CloseHandle(ovl.hEvent);
|
||||||
|
heap_free(params);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue