We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20d1aad commit ad2c386Copy full SHA for ad2c386
driver/others/memory.c
@@ -1073,11 +1073,6 @@ static volatile int memory_initialized = 0;
1073
}
1074
free(table);
1075
1076
-#if defined(OS_WINDOWS)
1077
- TlsFree(local_storage_key);
1078
-#else
1079
- pthread_key_delete(local_storage_key);
1080
-#endif
1081
1082
1083
static void blas_memory_init(){
@@ -1491,6 +1486,14 @@ void DESTRUCTOR gotoblas_quit(void) {
1491
1486
1492
1487
blas_shutdown();
1493
1488
1489
+#if defined(SMP)
1490
+#if defined(OS_WINDOWS)
+ TlsFree(local_storage_key);
+#else
+ pthread_key_delete(local_storage_key);
1494
+#endif
1495
1496
+
1497
#ifdef PROFILE
1498
moncontrol (0);
1499
#endif
0 commit comments