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 944ec1a commit 7b398adCopy full SHA for 7b398ad
src/prim/unix/prim.c
@@ -829,7 +829,9 @@ void _mi_prim_thread_init_auto_done(void) {
829
}
830
831
void _mi_prim_thread_done_auto_done(void) {
832
- // nothing to do
+ if (_mi_heap_default_key != (pthread_key_t)(-1)) { // do not leak the key, see issue #809
833
+ pthread_key_delete(_mi_heap_default_key);
834
+ }
835
836
837
void _mi_prim_thread_associate_default_heap(mi_heap_t* heap) {
0 commit comments