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

@ -1479,8 +1479,8 @@ static CURLcode pop3_done(struct Curl_easy *data, CURLcode status,
}
/* Cleanup our per-request based variables */
Curl_safefree(pop3->id);
Curl_safefree(pop3->custom);
curlx_safefree(pop3->id);
curlx_safefree(pop3->custom);
/* Clear the transfer mode for the next request */
pop3->transfer = PPTRANSFER_BODY;
@ -1627,7 +1627,7 @@ static CURLcode pop3_disconnect(struct Curl_easy *data,
Curl_pp_disconnect(&pop3c->pp);
/* Cleanup our connection based variables */
Curl_safefree(pop3c->apoptimestamp);
curlx_safefree(pop3c->apoptimestamp);
return CURLE_OK;
}
@ -1655,8 +1655,8 @@ static void pop3_easy_dtor(void *key, size_t klen, void *entry)
(void)klen;
DEBUGASSERT(pop3);
/* Cleanup our per-request based variables */
Curl_safefree(pop3->id);
Curl_safefree(pop3->custom);
curlx_safefree(pop3->id);
curlx_safefree(pop3->custom);
curlx_free(pop3);
}
@ -1667,7 +1667,7 @@ static void pop3_conn_dtor(void *key, size_t klen, void *entry)
(void)klen;
DEBUGASSERT(pop3c);
Curl_pp_disconnect(&pop3c->pp);
Curl_safefree(pop3c->apoptimestamp);
curlx_safefree(pop3c->apoptimestamp);
curlx_free(pop3c);
}