Commit 81b136fe authored by Michael Müller's avatar Michael Müller Committed by Alexandre Julliard

wininet: Fix memory leak by not calling get_cookie_header twice.

parent 566077a2
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment