Merge pull request #1942 from martin-frbg/issue1720

Delete the pthread key on cleanup in TLS mode
This commit is contained in:
Martin Kroeker
2018-12-30 14:47:05 +01:00
committed by GitHub

View File

@@ -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(){