Unset memory table entry, not just the temporary pointer to it on shutdown
to fix crash with multiple instances of OpenBLAS, #1692
This commit is contained in:
parent
61659f8765
commit
43ac839c16
|
@ -1279,7 +1279,7 @@ void blas_shutdown(void){
|
||||||
struct alloc_t *alloc_info = local_memory_table[thread][pos];
|
struct alloc_t *alloc_info = local_memory_table[thread][pos];
|
||||||
if (alloc_info) {
|
if (alloc_info) {
|
||||||
alloc_info->release_func(alloc_info);
|
alloc_info->release_func(alloc_info);
|
||||||
alloc_info = (void *)0;
|
local_memory_table[thread][pos] = (void *)0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue