Commit 7fe81ec2 authored by Cameron MacMinn's avatar Cameron MacMinn Committed by Daniel Stenberg
Browse files

http_proxy: Fix tiny memory leak upon edge case connecting to proxy

Fixes #1255
parent a7e4348c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -248,7 +248,7 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
                           useragent,
                           proxyconn);

        if(host && *host)
        if(host)
          free(host);
        free(hostheader);