From 4728efe0827f969ac432f722e7ab50b48f5d1bbb Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 2 Feb 2026 02:24:05 +0100 Subject: [PATCH] ftp: replace a `curlx_free()` with `curlx_dyn_free()` On an error path. Follow-up to f4beef524a53e1951c102fdb2ab96dd7a5e01077 #12638 Closes #20494 --- lib/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }