From 15108d6308466072a8474e4c23cdfcce2e65a032 Mon Sep 17 00:00:00 2001 From: Mike Crowe Date: Tue, 17 Jul 2012 18:43:49 +0200 Subject: 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. --- lib/url.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/url.c b/lib/url.c index 87b870113..567f1de90 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); -- cgit v1.2.3