diff options
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r-- | src/tool_operate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c index 9dc59b2e9..2bee9349a 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1357,6 +1357,9 @@ static CURLcode single_transfer(struct GlobalConfig *global, config->postfieldsize); break; case HTTPREQ_MIMEPOST: + /* free previous remainders */ + curl_mime_free(config->mimepost); + config->mimepost = NULL; result = tool2curlmime(curl, config->mimeroot, &config->mimepost); if(result) break; |