mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
Free the global DH parameters in crypto_global_cleanup().
This commit is contained in:
parent
a708e85236
commit
02708b7d80
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue