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:
Viktor Szakats 2026-02-02 02:24:05 +01:00
parent 9d04582d8c
commit 4728efe082
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -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;
}
}