mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 06:59:32 +03:00
Remove a redundant FlsSetValue()
This commit is contained in:
parent
2b19908057
commit
17762a7eb1
1 changed files with 0 additions and 1 deletions
|
@ -532,7 +532,6 @@ static void mi_process_done(void) {
|
||||||
#if defined(_WIN32) && !defined(MI_SHARED_LIB)
|
#if defined(_WIN32) && !defined(MI_SHARED_LIB)
|
||||||
// Explicitly clean up main thread. See comment in mi_process_init() for reason
|
// Explicitly clean up main thread. See comment in mi_process_init() for reason
|
||||||
_mi_thread_done(_mi_heap_default);
|
_mi_thread_done(_mi_heap_default);
|
||||||
FlsSetValue(mi_fls_key, NULL); // don't call main-thread callback
|
|
||||||
FlsFree(mi_fls_key); // call thread-done on all threads to prevent dangling callback pointer if statically linked with a DLL; Issue #208
|
FlsFree(mi_fls_key); // call thread-done on all threads to prevent dangling callback pointer if statically linked with a DLL; Issue #208
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue