From 3077b7776e2c94b14a4a9bd9b49eee850aee1e72 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 15 Jul 2017 17:51:32 +0800 Subject: [PATCH] valgrind: stop openssl still reachable complaints --- lib/ssl.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/ssl.c b/lib/ssl.c index d65923c24..46b4f7f02 100644 --- a/lib/ssl.c +++ b/lib/ssl.c @@ -306,6 +306,10 @@ lws_ssl_destroy(struct lws_vhost *vhost) #else ERR_remove_thread_state(NULL); #endif +#endif + // after 1.1.0 no need +#if (OPENSSL_VERSION_NUMBER >= 0x10002000) && (OPENSSL_VERSION_NUMBER <= 0x10100000) + SSL_COMP_free_compression_methods(); #endif ERR_free_strings(); EVP_cleanup(); @@ -875,6 +879,10 @@ lws_ssl_context_destroy(struct lws_context *context) #else ERR_remove_thread_state(NULL); #endif +#endif + // after 1.1.0 no need +#if (OPENSSL_VERSION_NUMBER >= 0x10002000) && (OPENSSL_VERSION_NUMBER <= 0x10100000) + SSL_COMP_free_compression_methods(); #endif ERR_free_strings(); EVP_cleanup();