mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
http_proxy: Fix tiny memory leak upon edge case connecting to proxy
Fixes #1255
This commit is contained in:
parent
a7e4348cf8
commit
7fe81ec298
@ -248,7 +248,7 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
|
|||||||
useragent,
|
useragent,
|
||||||
proxyconn);
|
proxyconn);
|
||||||
|
|
||||||
if(host && *host)
|
if(host)
|
||||||
free(host);
|
free(host);
|
||||||
free(hostheader);
|
free(hostheader);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user