From: Steve Holme Date: Sun, 17 Nov 2013 09:00:21 +0000 (+0000) Subject: smtp:Fixed memory leak from commit dac01ff6d788b2 X-Git-Tag: curl-7_34_0~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b27dc009cfb887eddbcf3f2d8b80f79852cb3ef1;p=thirdparty%2Fcurl.git smtp:Fixed memory leak from commit dac01ff6d788b2 The buffer allocated by smtp_parse_custom_request() was not freed. --- diff --git a/lib/smtp.c b/lib/smtp.c index 04fe76dd82..120afaf806 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;