From: Mike Crowe Date: Tue, 17 Jul 2012 16:43:49 +0000 (+0200) Subject: Avoid leak of local device string when reusing connection X-Git-Tag: curl-7_28_0~119 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15108d6308466072a8474e4c23cdfcce2e65a032;p=thirdparty%2Fcurl.git Avoid leak of local device string when reusing connection Ensure that the copy of the CURLOPT_INTERFACE string is freed if we decide we can reuse an existing connection. --- diff --git a/lib/url.c b/lib/url.c index 87b8701135..567f1de90f 100644 --- a/lib/url.c +++ b/lib/url.c @@ -4779,6 +4779,7 @@ static void reuse_conn(struct connectdata *old_conn, Curl_safefree(old_conn->passwd); Curl_safefree(old_conn->proxyuser); Curl_safefree(old_conn->proxypasswd); + Curl_safefree(old_conn->localdev); Curl_llist_destroy(old_conn->send_pipe, NULL); Curl_llist_destroy(old_conn->recv_pipe, NULL);