Commit b27dc009 authored by Steve Holme's avatar Steve Holme
Browse files

smtp:Fixed memory leak from commit dac01ff6

The buffer allocated by smtp_parse_custom_request() was not freed.
parent 2c7a5578
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -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;