From f226891520ac98a6085302d80ad40bb99ae29061 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Thu, 29 Jun 2017 15:16:42 +0200 Subject: [PATCH] fix openssl memory leaks --- src/tls_openssl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/tls_openssl.c b/src/tls_openssl.c index c1476ca..12614b0 100644 --- a/src/tls_openssl.c +++ b/src/tls_openssl.c @@ -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; }