summaryrefslogtreecommitdiff
path: root/TSRM/TSRM.c
diff options
context:
space:
mode:
Diffstat (limited to 'TSRM/TSRM.c')
-rw-r--r--TSRM/TSRM.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/TSRM/TSRM.c b/TSRM/TSRM.c
index 24d8ea969e..faf1f1f0c7 100644
--- a/TSRM/TSRM.c
+++ b/TSRM/TSRM.c
@@ -352,7 +352,7 @@ void ts_free_thread(void)
if (last) {
last->next = thread_resources->next;
} else {
- tsrm_tls_table[hash_value]=NULL;
+ tsrm_tls_table[hash_value] = thread_resources->next;
}
#if defined(PTHREADS)
pthread_setspecific( tls_key, 0 );