projects
/
curl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c771968
)
Avoid leak of local device string when reusing connection
author
Mike Crowe
<mac@mcrowe.com>
Tue, 17 Jul 2012 16:43:49 +0000
(18:43 +0200)
committer
Daniel Stenberg
<daniel@haxx.se>
Tue, 7 Aug 2012 21:35:35 +0000
(23:35 +0200)
Ensure that the copy of the CURLOPT_INTERFACE string is freed if we
decide we can reuse an existing connection.
lib/url.c
patch
|
blob
|
history
diff --git
a/lib/url.c
b/lib/url.c
index 87b8701135dde66d025b151d7c76766493de2f64..567f1de90ffc1e06eeeb1332310c9c6c26caae70 100644
(file)
--- 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);