]> granicus.if.org Git - curl/commitdiff
free-twice problem corrected
authorDaniel Stenberg <daniel@haxx.se>
Tue, 13 Jun 2000 08:11:45 +0000 (08:11 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 13 Jun 2000 08:11:45 +0000 (08:11 +0000)
CHANGES
lib/url.c

diff --git a/CHANGES b/CHANGES
index c5fb655513efe1b7354b7fbd380cd407829eca10..aa50a4a77ac86e1d7e30f707f7d75d4badf1211b 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,10 @@
 
                                History of Changes
 
+Daniel (13 June 2000)
+- Luong Dinh Dung <dung at sch.bme.hu> 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.
 
index ac97e23d3331758c4517bd4bfca8271033d903e0..9b844eda858d16823b1c3b924c3a54180b3f40f4 100644 (file)
--- 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;
 }