diff options
author | Martin Kroeker <martin@ruby.chemie.uni-freiburg.de> | 2018-12-30 14:47:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-30 14:47:05 +0100 |
commit | ccd5945d382ed44b97180a9ed0c7337f577d30d4 (patch) | |
tree | 7ac58fa66bf0d220d4b7ae291c9a6d10b34b9ca6 /driver | |
parent | 9f80e0f5fcfe883b5f355d71831bc22880c40271 (diff) | |
parent | bba1e672691cd62a2a0607865a2514334f8700e4 (diff) | |
download | openblas-ccd5945d382ed44b97180a9ed0c7337f577d30d4.tar.gz openblas-ccd5945d382ed44b97180a9ed0c7337f577d30d4.tar.bz2 openblas-ccd5945d382ed44b97180a9ed0c7337f577d30d4.zip |
Merge pull request #1942 from martin-frbg/issue1720
Delete the pthread key on cleanup in TLS mode
Diffstat (limited to 'driver')
-rw-r--r-- | driver/others/memory.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/driver/others/memory.c b/driver/others/memory.c index 36815a39c..6f7a7db82 100644 --- a/driver/others/memory.c +++ b/driver/others/memory.c @@ -1073,6 +1073,11 @@ static volatile int memory_initialized = 0; } free(table); } +#if defined(OS_WINDOWS) + TlsFree(local_storage_key); +#else + pthread_key_delete(local_storage_key); +#endif } static void blas_memory_init(){ |