mirror of
https://github.com/curl/curl.git
synced 2026-04-15 00:51:42 +03:00
ftp: fix leaking internal buffer newhost on error
Pointed out by TIOBE scanner via Coverity 2025.3.0. Closes #19290
This commit is contained in:
parent
d2e8acfaa6
commit
5bf9445315
1 changed files with 1 additions and 1 deletions
|
|
@ -1925,7 +1925,7 @@ static CURLcode ftp_state_pasv_resp(struct Curl_easy *data,
|
|||
result = Curl_conn_get_ip_info(data, data->conn, FIRSTSOCKET,
|
||||
&is_ipv6, &ipquad);
|
||||
if(result)
|
||||
return result;
|
||||
goto error;
|
||||
|
||||
(void)Curl_resolv_blocking(data, host_name, ipquad.remote_port,
|
||||
is_ipv6 ? CURL_IPRESOLVE_V6 : CURL_IPRESOLVE_V4,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue