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 } /*