1
0
mirror of https://github.com/moparisthebest/curl synced 2024-10-31 15:45:12 -04:00

smtp:Fixed memory leak from commit dac01ff6d7

The buffer allocated by smtp_parse_custom_request() was not freed.
This commit is contained in:
Steve Holme 2013-11-17 09:00:21 +00:00
parent 2c7a5578e1
commit b27dc009cf

View File

@ -1710,6 +1710,9 @@ static CURLcode smtp_done(struct connectdata *conn, CURLcode status,
result = smtp_block_statemach(conn); result = smtp_block_statemach(conn);
} }
/* Cleanup our per-request based variables */
Curl_safefree(smtp->custom);
/* Clear the transfer mode for the next request */ /* Clear the transfer mode for the next request */
smtp->transfer = FTPTRANSFER_BODY; smtp->transfer = FTPTRANSFER_BODY;