From: Viktor Szakats Date: Mon, 2 Feb 2026 01:24:05 +0000 (+0100) Subject: ftp: replace a `curlx_free()` with `curlx_dyn_free()` X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4728efe0827f969ac432f722e7ab50b48f5d1bbb;p=thirdparty%2Fcurl.git ftp: replace a `curlx_free()` with `curlx_dyn_free()` On an error path. Follow-up to f4beef524a53e1951c102fdb2ab96dd7a5e01077 #12638 Closes #20494 --- diff --git a/lib/ftp.c b/lib/ftp.c index 1fda9c608d..767f2ae47d 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -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; } }