mirror of
https://github.com/curl/curl.git
synced 2026-04-17 23:41:42 +03:00
smtp:Fixed memory leak from commit dac01ff6d7
The buffer allocated by smtp_parse_custom_request() was not freed.
This commit is contained in:
parent
2c7a5578e1
commit
b27dc009cf
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue