diff options
author | Richard Levitte <levitte@openssl.org> | 2017-03-26 20:01:44 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-03-27 12:54:40 +0200 |
commit | 165f1c3ef39680471339d21b9f6c12ea86b4a26a (patch) | |
tree | dae5e45d5a4b466aed4d581086fb7e19d47cc2f5 | |
parent | 0822d41b6d54132df96c02cc6f6fa9b179378351 (diff) | |
download | openssl-165f1c3ef39680471339d21b9f6c12ea86b4a26a.tar.gz |
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)
-rw-r--r-- | crypto/err/err.c | 1 |
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; } |