summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>2018-12-30 14:47:05 +0100
committerGitHub <noreply@github.com>2018-12-30 14:47:05 +0100
commitccd5945d382ed44b97180a9ed0c7337f577d30d4 (patch)
tree7ac58fa66bf0d220d4b7ae291c9a6d10b34b9ca6 /driver
parent9f80e0f5fcfe883b5f355d71831bc22880c40271 (diff)
parentbba1e672691cd62a2a0607865a2514334f8700e4 (diff)
downloadopenblas-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.c5
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(){