diff options
-rw-r--r-- | TSRM/TSRM.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/TSRM/TSRM.c b/TSRM/TSRM.c index 4425036ea7..cef4addab0 100644 --- a/TSRM/TSRM.c +++ b/TSRM/TSRM.c @@ -337,8 +337,6 @@ void ts_free_thread(void) while (thread_resources) { if (thread_resources->thread_id == thread_id) { - tsrm_mutex_unlock(tsmm_mutex); - for (i=0; i<thread_resources->count; i++) { if (resource_types_table[i].dtor) { resource_types_table[i].dtor(thread_resources->storage[i]); @@ -347,7 +345,6 @@ void ts_free_thread(void) for (i=0; i<thread_resources->count; i++) { free(thread_resources->storage[i]); } - tsrm_mutex_lock(tsmm_mutex); free(thread_resources->storage); if (last) { last->next = thread_resources->next; |