mirror of
https://github.com/curl/curl.git
synced 2026-04-15 01:01:41 +03:00
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:
parent
2b3dfb4ad4
commit
0df6c01db3
72 changed files with 494 additions and 500 deletions
12
lib/pop3.c
12
lib/pop3.c
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue