summaryrefslogtreecommitdiff
path: root/src/common/crypto.c
diff options
context:
space:
mode:
authorFernando Fernandez Mancera <ffernandezmancera@gmail.com>2018-01-08 15:31:41 +0100
committerFernando Fernandez Mancera <ffernandezmancera@gmail.com>2018-01-08 15:31:41 +0100
commit7353c9496e4f67321fbeee594cb8c488cff20aaf (patch)
tree45f411f1e5c686a0b3cf9541ba375fcceb2e4048 /src/common/crypto.c
parent4022277272b5213ef34cfeed46d006800b131687 (diff)
downloadtor-7353c9496e4f67321fbeee594cb8c488cff20aaf.tar.gz
tor-7353c9496e4f67321fbeee594cb8c488cff20aaf.zip
Add free_openssl() to crypto_openssl module.
Add free_openssl() function to free the memory allocated for OpenSSL version management variables. It is required since OpenSSL management has been isolated from the crypto module. Follows #24658. Signed-off-by: Fernando Fernandez Mancera <ffernandezmancera@gmail.com>
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r--src/common/crypto.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c
index 0abb4a1afb..12f4270cc4 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -3348,8 +3348,7 @@ crypto_global_cleanup(void)
}
#endif /* !defined(NEW_THREAD_API) */
- tor_free(crypto_openssl_version_str);
- tor_free(crypto_openssl_header_version_str);
+ free_openssl();
return 0;
}