diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-11-17 09:00:21 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-11-17 09:00:21 +0000 |
commit | b27dc009cfb887eddbcf3f2d8b80f79852cb3ef1 (patch) | |
tree | 5a2e3a1e2526c225557b95181c70b090e1c7578e | |
parent | 2c7a5578e1ad14bbdee77a335595a3c3e96dbbf7 (diff) |
smtp:Fixed memory leak from commit dac01ff6d788b2
The buffer allocated by smtp_parse_custom_request() was not freed.
-rw-r--r-- | lib/smtp.c | 3 |
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; |