mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
mime: properly unbind mime structure in curl_mime_free().
This allows freeing a mime structure bound to the easy handle before curl_easy_cleanup(). Fixes #1970.
This commit is contained in:
parent
232dffcf24
commit
06cb8adde2
@ -1130,6 +1130,7 @@ void curl_mime_free(curl_mime *mime)
|
||||
curl_mimepart *part;
|
||||
|
||||
if(mime) {
|
||||
mime_subparts_unbind(mime); /* Be sure it's not referenced anymore. */
|
||||
while(mime->firstpart) {
|
||||
part = mime->firstpart;
|
||||
mime->firstpart = part->nextpart;
|
||||
|
Loading…
Reference in New Issue
Block a user