From: Sebastian Pohlschmidt Date: Fri, 13 Nov 2015 21:07:11 +0000 (-0500) Subject: openssl: Free modules on cleanup X-Git-Tag: curl-7_46_0~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad2d51754573cef5f7ff1df2ee48591bdcfcdc99;p=curl openssl: Free modules on cleanup Curl_ossl_init calls OPENSSL_load_builtin_modules() but Curl_ossl_cleanup doesn't make a call to free these modules. Bug: https://github.com/bagder/curl/issues/526 --- diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index ac4bd19be..57d945ab9 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -746,6 +746,9 @@ void Curl_ossl_cleanup(void) #else ERR_remove_state(0); #endif + + /* Free all memory allocated by all configuration modules */ + CONF_modules_free(); } /*