summaryrefslogtreecommitdiff
path: root/lib/http_proxy.c
diff options
context:
space:
mode:
authorCameron MacMinn <camacmin@cisco.com>2017-02-08 11:14:36 -0700
committerDaniel Stenberg <daniel@haxx.se>2017-02-09 09:51:42 +0100
commit7fe81ec298e09d542a268c70361ae2d1f0b29f79 (patch)
treee4499ed9dfe267bb46364fbfea61be7b446c7e2b /lib/http_proxy.c
parenta7e4348cf8d9e3ca4ef7020de4540a7257bc5b30 (diff)
downloadcurl-7fe81ec298e09d542a268c70361ae2d1f0b29f79.tar.gz
http_proxy: Fix tiny memory leak upon edge case connecting to proxy
Fixes #1255
Diffstat (limited to 'lib/http_proxy.c')
-rw-r--r--lib/http_proxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http_proxy.c b/lib/http_proxy.c
index e0213f34d..ac1b3bf93 100644
--- a/lib/http_proxy.c
+++ b/lib/http_proxy.c
@@ -248,7 +248,7 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
useragent,
proxyconn);
- if(host && *host)
+ if(host)
free(host);
free(hostheader);