aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/smtp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/smtp.c b/lib/smtp.c
index 04fe76dd8..120afaf80 100644
--- a/lib/smtp.c
+++ b/lib/smtp.c
@@ -1710,6 +1710,9 @@ static CURLcode smtp_done(struct connectdata *conn, CURLcode status,
result = smtp_block_statemach(conn);
}
+ /* Cleanup our per-request based variables */
+ Curl_safefree(smtp->custom);
+
/* Clear the transfer mode for the next request */
smtp->transfer = FTPTRANSFER_BODY;