Skip to content

Commit 43ac839

Browse files
authored
Unset memory table entry, not just the temporary pointer to it on shutdown
to fix crash with multiple instances of OpenBLAS, #1692
1 parent 61659f8 commit 43ac839

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/others/memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@ void blas_shutdown(void){
12791279
struct alloc_t *alloc_info = local_memory_table[thread][pos];
12801280
if (alloc_info) {
12811281
alloc_info->release_func(alloc_info);
1282-
alloc_info = (void *)0;
1282+
local_memory_table[thread][pos] = (void *)0;
12831283
}
12841284
}
12851285
}

0 commit comments

Comments
 (0)