From 5493ab345ac2af9ac3a3ef0bfd321eaf3910460c Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Tue, 17 Oct 2023 17:29:32 +0200 Subject: Some more rollback on tls destructor (more work needed on threads cleanup handling) --- src/libtools/threads.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/libtools') diff --git a/src/libtools/threads.c b/src/libtools/threads.c index a5fe55f7..f7c2badf 100644 --- a/src/libtools/threads.c +++ b/src/libtools/threads.c @@ -144,13 +144,12 @@ static void emuthread_destroy(void* p) return; void* ptr; // check tlsdata - if (my_context && (ptr = pthread_getspecific(my_context->tlskey)) != NULL) - free_tlsdatasize(ptr); + /*if (my_context && (ptr = pthread_getspecific(my_context->tlskey)) != NULL) + free_tlsdatasize(ptr);*/ // free x64emu if(et) { FreeX64Emu(&et->emu); box_free(et); - pthread_setspecific(thread_key, NULL); } } -- cgit 1.4.1