summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/smtp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/smtp.c b/lib/smtp.c
index 67dc04f28..de2dd3356 100644
--- a/lib/smtp.c
+++ b/lib/smtp.c
@@ -550,8 +550,11 @@ static CURLcode smtp_perform_mail(struct connectdata *conn)
if(!result)
result = Curl_mime_rewind(&data->set.mimepost);
- if(result)
+ if(result) {
+ free(from);
+ free(auth);
return result;
+ }
data->state.infilesize = Curl_mime_size(&data->set.mimepost);