tidy-up: use curlx_safefree()

Closes #21700
This commit is contained in:
Viktor Szakats 2026-05-20 20:43:59 +02:00
parent d3b04e5600
commit bcd0497c81
No known key found for this signature in database
19 changed files with 41 additions and 80 deletions

View file

@ -507,8 +507,7 @@ CURLcode Curl_parse_interface(const char *input,
++host_part;
*host = curlx_memdup0(host_part, len - (host_part - input));
if(!*host) {
curlx_free(*iface);
*iface = NULL;
curlx_safefree(*iface);
return CURLE_OUT_OF_MEMORY;
}
return CURLE_OK;