aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMike Crowe <mac@mcrowe.com>2012-07-17 18:43:49 +0200
committerDaniel Stenberg <daniel@haxx.se>2012-08-07 23:35:35 +0200
commit15108d6308466072a8474e4c23cdfcce2e65a032 (patch)
tree414859c091cbf7b5daea51461820fee7c61fac27 /lib
parentc771968ab6e842ecda4043a6e8d553457543816e (diff)
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c1
1 files changed, 1 insertions, 0 deletions
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);