diff --git a/TSRM/TSRM.c b/TSRM/TSRM.c index 2e2a2ec1ea0..a7e9e640aa2 100644 --- a/TSRM/TSRM.c +++ b/TSRM/TSRM.c @@ -258,8 +258,8 @@ void ts_free_thread() } if (thread_resources->next) { last = thread_resources; - thread_resources = thread_resources->next; } + thread_resources = thread_resources->next; } tsrm_mutex_unlock(tsmm_mutex); }