mirror of
https://github.com/curl/curl.git
synced 2026-08-25 12:03:39 +03:00
OOM handling/cleanup slight adjustments
This commit is contained in:
parent
584dc8b8af
commit
bff78cc18e
5 changed files with 50 additions and 32 deletions
|
|
@ -3667,8 +3667,7 @@ static CURLcode wc_statemach(struct connectdata *conn)
|
|||
strcat(tmp_path, finfo->filename);
|
||||
/* switch default "state.pathbuffer" and tmp_path, good to see
|
||||
ftp_parse_url_path function to understand this trick */
|
||||
if(conn->data->state.pathbuffer)
|
||||
free(conn->data->state.pathbuffer);
|
||||
Curl_safefree(conn->data->state.pathbuffer);
|
||||
conn->data->state.pathbuffer = tmp_path;
|
||||
conn->data->state.path = tmp_path;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue