diff options
author | Mike Crowe <mac@mcrowe.com> | 2012-07-17 18:43:49 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-08-07 23:35:35 +0200 |
commit | 15108d6308466072a8474e4c23cdfcce2e65a032 (patch) | |
tree | 414859c091cbf7b5daea51461820fee7c61fac27 | |
parent | c771968ab6e842ecda4043a6e8d553457543816e (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.
-rw-r--r-- | lib/url.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |