Add missing CRYPTO_THREAD_cleanup_local of default_context_thread_local
authorHarry Sintonen <sintonen@iki.fi>
Tue, 1 Feb 2022 21:48:19 +0000 (23:48 +0200)
committerTomas Mraz <tomas@openssl.org>
Fri, 4 Feb 2022 07:59:08 +0000 (08:59 +0100)
CLA: trivial

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17622)

crypto/context.c

index cc48c926041968098cf1e0ed6f2982ffeb95f2c2..e84eeea59652b9c75d5cd46e5141afe1fc3bc157 100644 (file)
@@ -156,6 +156,7 @@ DEFINE_RUN_ONCE_STATIC(default_context_do_init)
 void ossl_lib_ctx_default_deinit(void)
 {
     context_deinit(&default_context_int);
+    CRYPTO_THREAD_cleanup_local(&default_context_thread_local);
 }
 
 static OSSL_LIB_CTX *get_thread_default_context(void)