easy: fix build with --disable-form-api and --disable-mime

Follow-up to 44312b4b11

Closes #20332
This commit is contained in:
Daniel Stenberg 2026-01-15 23:08:50 +01:00
parent fd82773820
commit 65714f8130
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 6 additions and 1 deletions

View file

@ -175,8 +175,10 @@ void Curl_freeset(struct Curl_easy *data)
Curl_bufref_free(&data->state.referer);
Curl_bufref_free(&data->state.url);
#if !defined(CURL_DISABLE_MIME) || !defined(CURL_DISABLE_FORM_API)
Curl_mime_cleanpart(data->set.mimepostp);
Curl_safefree(data->set.mimepostp);
#endif
#ifndef CURL_DISABLE_COOKIES
curl_slist_free_all(data->state.cookielist);