From 06cb8adde2ef85c3ac610f93c0fc8a34a3e299b6 Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Mon, 9 Oct 2017 01:26:27 +0100 Subject: 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. --- lib/mime.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/mime.c b/lib/mime.c index 04746ed09..cba95b929 100644 --- a/lib/mime.c +++ b/lib/mime.c @@ -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; -- cgit v1.2.3