tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree()

To sync names for the same macro logic between lib and src, and to move
it to the curlx namespace, to match `curlx_free()` that it's calling.

Closes #21151
This commit is contained in:
Viktor Szakats 2026-03-30 01:54:10 +02:00
parent 2b3dfb4ad4
commit 0df6c01db3
No known key found for this signature in database
72 changed files with 494 additions and 500 deletions

View file

@ -1057,7 +1057,7 @@ UNITTEST void de_cleanup(struct dohentry *d)
}
#ifdef USE_HTTPSRR
for(i = 0; i < d->numhttps_rrs; i++)
Curl_safefree(d->https_rrs[i].val);
curlx_safefree(d->https_rrs[i].val);
#endif
}
@ -1176,7 +1176,7 @@ UNITTEST CURLcode doh_resp_decode_httpsrr(struct Curl_easy *data,
return CURLE_OK;
err:
Curl_httpsrr_cleanup(lhrr);
Curl_safefree(lhrr);
curlx_safefree(lhrr);
return result;
}
@ -1360,7 +1360,7 @@ void Curl_doh_cleanup(struct Curl_easy *data,
for(i = 0; i < DOH_SLOT_COUNT; ++i) {
curlx_dyn_free(&dohp->probe_resp[i].body);
}
Curl_safefree(async->doh);
curlx_safefree(async->doh);
}
}