From 1045b8d3828db484bb7e1f8162362d10cc21d2f3 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 19 Feb 2007 12:20:32 +0000 Subject: [PATCH] - Shmulik Regev found a memory leak in re-used HTTPS connections, at least when the multi interface was used. --- CHANGES | 3 +++ RELEASE-NOTES | 1 + lib/url.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/CHANGES b/CHANGES index f75ef4f4b..488e306e0 100644 --- a/CHANGES +++ b/CHANGES @@ -7,6 +7,9 @@ Changelog Daniel (19 February 2007) +- Shmulik Regev found a memory leak in re-used HTTPS connections, at least + when the multi interface was used. + - Robson Braga Araujo made passive FTP transfers work with SOCKS (both 4 and 5). diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 2ec048505..8e91e5a92 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -25,6 +25,7 @@ This release includes the following bugfixes: o CURLOPT_RANGE set to NULL resets the range for FTP o curl_multi_remove_handle() rare crash o passive FTP transfers work with SOCKS + o multi interface HTTPS connection re-use memory leak This release includes the following known bugs: diff --git a/lib/url.c b/lib/url.c index 692e66c2d..3bd8dcb6d 100644 --- a/lib/url.c +++ b/lib/url.c @@ -1786,6 +1786,8 @@ static void conn_free(struct connectdata *conn) Curl_destroy_thread_data(&conn->async); #endif + Curl_ssl_close(conn); + Curl_free_ssl_config(&conn->ssl_config); free(conn); /* free all the connection oriented data */