From: Jay Satiro Date: Fri, 20 May 2016 20:44:01 +0000 (-0400) Subject: openssl: cleanup must free compression methods X-Git-Tag: curl-7_49_1~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3caaeffbe8ded4deaeb946d23631b04507bee408;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index 6e3335e441..3a4bde5b34 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 } /*