mirror of
https://github.com/curl/curl.git
synced 2026-07-25 10:47:45 +03:00
free-twice problem corrected
This commit is contained in:
parent
611f50fb76
commit
2488fff451
2 changed files with 5 additions and 3 deletions
4
CHANGES
4
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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue