valgrind: stop openssl still reachable complaints
authorAndy Green <andy@warmcat.com>
Sat, 15 Jul 2017 09:51:32 +0000 (17:51 +0800)
committerAndy Green <andy@warmcat.com>
Tue, 18 Jul 2017 20:11:30 +0000 (04:11 +0800)
lib/ssl.c

index d65923c24be1e1cebe079e1c29b8564608da57df..46b4f7f02bc0e8f1a143b0dfc080070230240c51 100644 (file)
--- 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();