Skip to content

Commit

Permalink
mimalloc: cherry-pick microsoft/mimalloc@7b398ad in Emscripten backend
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Nov 23, 2024
1 parent d7ec9d5 commit f7f1ded
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion system/lib/mimalloc/src/prim/emscripten/prim.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ void _mi_prim_thread_init_auto_done(void) {
}

void _mi_prim_thread_done_auto_done(void) {
// nothing to do
if (_mi_heap_default_key != (pthread_key_t)(-1)) { // do not leak the key, see issue #809
pthread_key_delete(_mi_heap_default_key);
}
}

void _mi_prim_thread_associate_default_heap(mi_heap_t* heap) {
Expand Down

0 comments on commit f7f1ded

Please sign in to comment.