From ad2d51754573cef5f7ff1df2ee48591bdcfcdc99 Mon Sep 17 00:00:00 2001 From: Sebastian Pohlschmidt Date: Fri, 13 Nov 2015 16:07:11 -0500 Subject: [PATCH] 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 --- lib/vtls/openssl.c | 3 +++ 1 file changed, 3 insertions(+) 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(); } /*