mirror of
https://github.com/curl/curl.git
synced 2026-07-29 06:33:07 +03:00
openssl: don’t call CRYTPO_cleanup_all_ex_data
The OpenSSL function CRYTPO_cleanup_all_ex_data() cannot be called multiple times without crashing - and other libs might call it! We basically cannot call it without risking a crash. The function is a no-op since OpenSSL 1.1.0. Not calling this function only risks a small memory leak with OpenSSL < 1.1.0. Bug: https://curl.haxx.se/mail/lib-2016-09/0045.html Reported-by: Todd Short
This commit is contained in:
parent
fb0032a33e
commit
de71e68000
3 changed files with 1 additions and 9 deletions
|
|
@ -748,11 +748,6 @@ void Curl_ossl_cleanup(void)
|
|||
ENGINE_cleanup();
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CRYPTO_CLEANUP_ALL_EX_DATA
|
||||
/* Free OpenSSL ex_data table */
|
||||
CRYPTO_cleanup_all_ex_data();
|
||||
#endif
|
||||
|
||||
/* Free OpenSSL error strings */
|
||||
ERR_free_strings();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue