mirror of
https://github.com/curl/curl.git
synced 2026-08-25 03:23:32 +03:00
ftp/sftp: strdup data info memory
Fix the broken implementation to have `data->state` carry pointers into connectdata members. Always dup the memory and free when easy handle closes. Closes #16733
This commit is contained in:
parent
d12129dda5
commit
ebce3f0c02
4 changed files with 18 additions and 15 deletions
|
|
@ -285,6 +285,7 @@ CURLcode Curl_close(struct Curl_easy **datap)
|
|||
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_DIGEST_AUTH)
|
||||
Curl_http_auth_cleanup_digest(data);
|
||||
#endif
|
||||
Curl_safefree(data->state.most_recent_ftp_entrypath);
|
||||
Curl_safefree(data->info.contenttype);
|
||||
Curl_safefree(data->info.wouldredirect);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue