From 7fe81ec298e09d542a268c70361ae2d1f0b29f79 Mon Sep 17 00:00:00 2001 From: Cameron MacMinn Date: Wed, 8 Feb 2017 11:14:36 -0700 Subject: http_proxy: Fix tiny memory leak upon edge case connecting to proxy Fixes #1255 --- lib/http_proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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); -- cgit v1.2.3