fix openssl memory leaks

This commit is contained in:
Steffen Jaeckel
2017-06-29 15:16:42 +02:00
parent 43a68479ad
commit f226891520

View File

@@ -57,6 +57,13 @@ void tls_initialize(void)
void tls_shutdown(void)
{
ERR_free_strings();
EVP_cleanup();
CRYPTO_cleanup_all_ex_data();
#if OPENSSL_VERSION_NUMBER >= 0x10200000
SSL_COMP_free_compression_methods();
#endif
ERR_remove_state(0);
return;
}