Delete the pthread key on cleanup in TLS mode
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Sat, 29 Dec 2018 20:59:31 +0000 (21:59 +0100)
committerGitHub <noreply@github.com>
Sat, 29 Dec 2018 20:59:31 +0000 (21:59 +0100)
commitbba1e672691cd62a2a0607865a2514334f8700e4
tree26cacadb27eab96dcbf9d6f58bbd18b0f4774d75
parenta5a111852726a48e2a3dfc67cc693964b5f1240e
Delete the pthread key on cleanup in TLS mode

to avoid a crash when OpenBLAS was loaded via dlopen and libc tries to clean up the leaked TLS after dlclose
Fixes #1720
driver/others/memory.c