]> granicus.if.org Git - curl/commitdiff
http_proxy: Fix tiny memory leak upon edge case connecting to proxy
authorCameron MacMinn <camacmin@cisco.com>
Wed, 8 Feb 2017 18:14:36 +0000 (11:14 -0700)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 9 Feb 2017 08:51:42 +0000 (09:51 +0100)
Fixes #1255

lib/http_proxy.c

index e0213f34d0c4c869e8b0280d0d3a1bb3a856544d..ac1b3bf93ecf9488f5e46a100498afed0ec183d1 100644 (file)
@@ -248,7 +248,7 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
                            useragent,
                            proxyconn);
 
-        if(host && *host)
+        if(host)
           free(host);
         free(hostheader);