curl-library
[PATCH] Avoid leak of local device string when reusing connection
From: Mike Crowe <mac_at_mcrowe.com>
Date: Tue, 17 Jul 2012 17:43:49 +0100
Date: Tue, 17 Jul 2012 17:43:49 +0100
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 87b8701..567f1de 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); -- 1.7.10 ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-07-17