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 4d72d24 commit b7e3831Copy full SHA for b7e3831
system/lib/mimalloc/src/prim/emscripten/prim.c
@@ -209,7 +209,9 @@ void _mi_prim_thread_init_auto_done(void) {
209
}
210
211
void _mi_prim_thread_done_auto_done(void) {
212
- // nothing to do
+ if (_mi_heap_default_key != (pthread_key_t)(-1)) { // do not leak the key, see issue #809
213
+ pthread_key_delete(_mi_heap_default_key);
214
+ }
215
216
217
void _mi_prim_thread_associate_default_heap(mi_heap_t* heap) {
0 commit comments