Commit 06cb8add authored by Patrick Monnerat's avatar Patrick Monnerat
Browse files

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.
parent 232dffcf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;