summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-11-17 09:00:21 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-11-17 09:00:21 +0000
commitb27dc009cfb887eddbcf3f2d8b80f79852cb3ef1 (patch)
tree5a2e3a1e2526c225557b95181c70b090e1c7578e /lib
parent2c7a5578e1ad14bbdee77a335595a3c3e96dbbf7 (diff)
downloadcurl-b27dc009cfb887eddbcf3f2d8b80f79852cb3ef1.tar.gz
smtp:Fixed memory leak from commit dac01ff6d788b2
The buffer allocated by smtp_parse_custom_request() was not freed.
Diffstat (limited to 'lib')
-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;