mirror of
https://github.com/curl/curl.git
synced 2026-06-13 08:15:37 +03:00
implement #21588
This commit is contained in:
parent
f600501916
commit
080c38b3ef
3 changed files with 3 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ static void share_destroy(struct Curl_share *share)
|
|||
#ifdef USE_MUTEX
|
||||
Curl_mutex_destroy(&share->lock);
|
||||
#endif
|
||||
share->magic = 0;
|
||||
curlx_memzero(share, sizeof(*share));
|
||||
curlx_free(share);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3043,6 +3043,7 @@ CURLMcode curl_multi_cleanup(CURLM *m)
|
|||
Curl_uint32_bset_destroy(&multi->pending);
|
||||
Curl_uint32_bset_destroy(&multi->msgsent);
|
||||
Curl_uint32_tbl_destroy(&multi->xfers);
|
||||
curlx_memzero(multi, sizeof(*multi));
|
||||
curlx_free(multi);
|
||||
|
||||
return CURLM_OK;
|
||||
|
|
|
|||
|
|
@ -315,6 +315,7 @@ CURLcode Curl_close(struct Curl_easy **datap)
|
|||
#ifndef CURL_DISABLE_PROXY
|
||||
Curl_ssl_config_cleanup(&data->set.proxy_ssl.primary);
|
||||
#endif
|
||||
curlx_memzero(data, sizeof(*data));
|
||||
curlx_free(data);
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue