From 3caaeffbe8ded4deaeb946d23631b04507bee408 Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Fri, 20 May 2016 16:44:01 -0400 Subject: openssl: cleanup must free compression methods - Free compression methods if OpenSSL 1.0.2 to avoid a memory leak. Bug: https://github.com/curl/curl/issues/817 Reported-by: jveazey@users.noreply.github.com --- lib/vtls/openssl.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/vtls') diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index 6e3335e44..3a4bde5b3 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -747,6 +747,11 @@ void Curl_ossl_cleanup(void) /* Free all memory allocated by all configuration modules */ CONF_modules_free(); + +#if OPENSSL_VERSION_NUMBER >= 0x10002003L && \ + OPENSSL_VERSION_NUMBER <= 0x10002FFFL + SSL_COMP_free_compression_methods(); +#endif } /* -- cgit v1.2.3