[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Free the global DH parameters in crypto_global_cleanup().
commit 02708b7d8077801c44c944687d8c9f90321a4655
Author: George Kadianakis <desnacked@xxxxxxxxx>
Date: Tue Nov 22 15:14:59 2011 +0100
Free the global DH parameters in crypto_global_cleanup().
---
src/common/crypto.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/common/crypto.c b/src/common/crypto.c
index a9d8b04..62b0bce 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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits