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…
Reference in New Issue