mirror of
https://github.com/reactos/wine.git
synced 2025-01-31 09:01:59 +00:00
wininet: Fix memory leak by not calling get_cookie_header twice.
This commit is contained in:
parent
566077a2cd
commit
81b136fe1c
@ -4244,7 +4244,6 @@ static void HTTP_InsertCookies(http_request_t *request)
|
||||
if(res != ERROR_SUCCESS || !cookies)
|
||||
return;
|
||||
|
||||
get_cookie_header(request->server->name, request->path, &cookies);
|
||||
HTTP_HttpAddRequestHeadersW(request, cookies, strlenW(cookies), HTTP_ADDREQ_FLAG_REPLACE);
|
||||
heap_free(cookies);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user