summaryrefslogtreecommitdiff
path: root/src/tool_cfgable.c
diff options
context:
space:
mode:
authorPatrick Monnerat <patrick@monnerat.net>2019-02-19 17:08:58 +0100
committerPatrick Monnerat <patrick@monnerat.net>2019-02-19 17:08:58 +0100
commite49e5eaa1069a4dfb0ece4a6d833bf51341ef73a (patch)
treed4f404142961b24b7800b89a1197e285cf968794 /src/tool_cfgable.c
parentd8b0318ad6da7e51f7c94df00a5f165a52580889 (diff)
downloadcurl-e49e5eaa1069a4dfb0ece4a6d833bf51341ef73a.tar.gz
cli tool: fix mime post with --disable-libcurl-option configure option
Reported-by: Marcel Raad Fixes #3576 Closes #3583
Diffstat (limited to 'src/tool_cfgable.c')
-rw-r--r--src/tool_cfgable.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tool_cfgable.c b/src/tool_cfgable.c
index 6d4a0ed9b..cf5212bab 100644
--- a/src/tool_cfgable.c
+++ b/src/tool_cfgable.c
@@ -144,10 +144,10 @@ static void free_config_fields(struct OperationConfig *config)
curl_slist_free_all(config->headers);
curl_slist_free_all(config->proxyheaders);
- if(config->mimepost) {
- tool_mime_free(config->mimepost);
- config->mimepost = NULL;
- }
+ curl_mime_free(config->mimepost);
+ config->mimepost = NULL;
+ tool_mime_free(config->mimeroot);
+ config->mimeroot = NULL;
config->mimecurrent = NULL;
curl_slist_free_all(config->telnet_options);