This commit is contained in:
Viktor Szakats 2026-05-16 12:58:25 +02:00
parent f600501916
commit 080c38b3ef
No known key found for this signature in database
3 changed files with 3 additions and 1 deletions

View file

@ -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);
}

View file

@ -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;

View file

@ -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;
}