From: Daniel Stenberg Date: Tue, 13 Jun 2000 08:11:45 +0000 (+0000) Subject: free-twice problem corrected X-Git-Tag: curl-7_1_1~99 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2488fff451863db7b18d7a4adf412536c1d864c6;p=curl free-twice problem corrected --- diff --git a/CHANGES b/CHANGES index c5fb65551..aa50a4a77 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,10 @@ History of Changes +Daniel (13 June 2000) +- Luong Dinh Dung found a problem in curl_easy_cleanup() + since it free()ed the main curl struct *twice*. This is now corrected. + Daniel (9 June 2000) - Updated the RESOURCES file, added a README.win32 file. diff --git a/lib/url.c b/lib/url.c index ac97e23d3..9b844eda8 100644 --- a/lib/url.c +++ b/lib/url.c @@ -233,14 +233,12 @@ CURLcode curl_close(CURL *curl) void *protocol = data->proto.generic; - /* total session cleanup */ + /* total session cleanup (frees 'data' as well!)*/ urlfree(data, TRUE); if(protocol) free(protocol); - free(data); - return CURLE_OK; }