mirror of
https://github.com/curl/curl.git
synced 2026-07-24 15:37:16 +03:00
ftp: replace a curlx_free() with curlx_dyn_free()
On an error path.
Follow-up to f4beef524a #12638
Closes #20494
This commit is contained in:
parent
9d04582d8c
commit
4728efe082
1 changed files with 1 additions and 1 deletions
|
|
@ -2981,7 +2981,7 @@ static CURLcode ftp_pwd_resp(struct Curl_easy *data,
|
|||
if(!ftpc->server_os && dir[0] != '/') {
|
||||
result = Curl_pp_sendf(data, &ftpc->pp, "%s", "SYST");
|
||||
if(result) {
|
||||
curlx_free(dir);
|
||||
curlx_dyn_free(&out);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue