diff options
-rw-r--r-- | lib/libthr/thread/thr_create.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_create.c b/lib/libthr/thread/thr_create.c index 2e7a841..58fb1a1 100644 --- a/lib/libthr/thread/thr_create.c +++ b/lib/libthr/thread/thr_create.c @@ -218,7 +218,7 @@ out: if (ret) { THREAD_LIST_LOCK(curthread); new_thread->tlflags |= TLFLAGS_DETACHED; - _thr_ref_delete_unlocked(curthread, new_thread); + THR_GCLIST_ADD(new_thread); THREAD_LIST_UNLOCK(curthread); } } |