From b27dc009cfb887eddbcf3f2d8b80f79852cb3ef1 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sun, 17 Nov 2013 09:00:21 +0000 Subject: smtp:Fixed memory leak from commit dac01ff6d788b2 The buffer allocated by smtp_parse_custom_request() was not freed. --- lib/smtp.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') 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; -- cgit v1.2.3