summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2017-03-26 20:01:44 +0200
committerRichard Levitte <levitte@openssl.org>2017-03-27 12:54:40 +0200
commit165f1c3ef39680471339d21b9f6c12ea86b4a26a (patch)
treedae5e45d5a4b466aed4d581086fb7e19d47cc2f5 /crypto
parent0822d41b6d54132df96c02cc6f6fa9b179378351 (diff)
In err_cleanup(), cleanup the thread local storage too
Fixes #3033 Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3035)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/err/err.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/err/err.c b/crypto/err/err.c
index 44a293ad42..d5cad0577e 100644
--- a/crypto/err/err.c
+++ b/crypto/err/err.c
@@ -259,6 +259,7 @@ DEFINE_RUN_ONCE_STATIC(do_err_strings_init)
void err_cleanup(void)
{
+ CRYPTO_THREAD_cleanup_local(&err_thread_local);
CRYPTO_THREAD_lock_free(err_string_lock);
err_string_lock = NULL;
}