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

@ -132,8 +132,7 @@ static CURLcode test_unit1607(const char *arg)
goto error;
dns = Curl_hash_pick(&multi->dnscache.entries,
entry_id, strlen(entry_id) + 1);
curlx_free(entry_id);
entry_id = NULL;
curlx_safefree(entry_id);
addr = dns ? dns->addr : NULL;

View file

@ -134,8 +134,7 @@ static CURLcode test_unit1609(const char *arg)
dns = Curl_hash_pick(&multi->dnscache.entries,
entry_id, strlen(entry_id) + 1);
curlx_free(entry_id);
entry_id = NULL;
curlx_safefree(entry_id);
addr = dns ? dns->addr : NULL;