src: rename curlx_safefree to tool_safefree

It is not part of the curlx function collection, just a macro that might
as well be a local version.

Closes #17270
This commit is contained in:
Daniel Stenberg 2025-05-07 11:36:50 +02:00
parent e522f47986
commit d689bd915e
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
13 changed files with 140 additions and 139 deletions

View file

@ -594,7 +594,7 @@ CURLcode FindWin32CACert(struct OperationConfig *config,
res_len = SearchPath(NULL, bundle_file, NULL, PATH_MAX, buf, &ptr);
if(res_len > 0) {
char *mstr = curlx_convert_tchar_to_UTF8(buf);
curlx_safefree(config->cacert);
tool_safefree(config->cacert);
if(mstr)
config->cacert = strdup(mstr);
curlx_unicodefree(mstr);