From: George Kadianakis Date: Tue, 22 Nov 2011 14:14:59 +0000 (+0100) Subject: Free the global DH parameters in crypto_global_cleanup(). X-Git-Tag: tor-0.2.3.9-alpha~28^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=02708b7d8077801c44c944687d8c9f90321a4655;p=thirdparty%2Ftor.git Free the global DH parameters in crypto_global_cleanup(). --- diff --git a/src/common/crypto.c b/src/common/crypto.c index a9d8b04e60..62b0bcec6c 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -3069,6 +3069,13 @@ crypto_global_cleanup(void) ERR_remove_state(0); ERR_free_strings(); + if (dh_param_p) + BN_free(dh_param_p); + if (dh_param_p_tls) + BN_free(dh_param_p_tls); + if (dh_param_g) + BN_free(dh_param_g); + #ifndef DISABLE_ENGINES ENGINE_cleanup(); #endif