diff options
| author | Yang Tse <yangsita@gmail.com> | 2011-10-12 21:32:10 +0200 | 
|---|---|---|
| committer | Yang Tse <yangsita@gmail.com> | 2011-10-12 21:32:10 +0200 | 
| commit | bff78cc18e8dc22926d4b0219e6fac08758ed790 (patch) | |
| tree | 64fd14241294aed026d68aaa92821484965b83b1 /lib/ftp.c | |
| parent | 584dc8b8af862f7f47a3a9f02f874ac0bd0076be (diff) | |
OOM handling/cleanup slight adjustments
Diffstat (limited to 'lib/ftp.c')
| -rw-r--r-- | lib/ftp.c | 3 | 
1 files changed, 1 insertions, 2 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;  | 
