From: Richard Levitte Date: Sun, 26 Mar 2017 18:01:44 +0000 (+0200) Subject: In err_cleanup(), cleanup the thread local storage too X-Git-Tag: OpenSSL_1_1_0f~122 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7dca72af91936d246700b78e06def16561a36028;p=openssl In err_cleanup(), cleanup the thread local storage too Fixes #3033 Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/3035) (cherry picked from commit 165f1c3ef39680471339d21b9f6c12ea86b4a26a) --- 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; }