summaryrefslogtreecommitdiffstats
path: root/crypto/init.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-03-14 10:26:28 +0000
committerMatt Caswell <matt@openssl.org>2016-03-14 10:54:37 +0000
commitb10cdcce005780d9a5ac0398fb0cb4194c0d991b (patch)
treed49e08f59af0ea494ace21f1589c8e2806778b0c /crypto/init.c
parenta87c159f19e998bba660ceba9d01c5fc58bfa60b (diff)
Add some missing cleanup calls to de-init
OBJ_cleanup() doesn't always get called from EVP_cleanup() so needs to be explicitly called in de-init. Also BIO_sock_cleanup() also needs to be called. Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/init.c')
-rw-r--r--crypto/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/init.c b/crypto/init.c
index d50d7f19e8..dc15b1d83a 100644
--- a/crypto/init.c
+++ b/crypto/init.c
@@ -483,7 +483,9 @@ void OPENSSL_cleanup(void)
ENGINE_cleanup();
#endif
CRYPTO_cleanup_all_ex_data();
+ BIO_sock_cleanup();
EVP_cleanup();
+ OBJ_cleanup();
CONF_modules_free();
RAND_cleanup();
base_inited = 0;