diff options
Diffstat (limited to 'lib/libc/thread/rthread.c')
-rw-r--r-- | lib/libc/thread/rthread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/thread/rthread.c b/lib/libc/thread/rthread.c index 66405cf477a..f26e85ffd31 100644 --- a/lib/libc/thread/rthread.c +++ b/lib/libc/thread/rthread.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rthread.c,v 1.6 2017/11/04 22:53:57 jca Exp $ */ +/* $OpenBSD: rthread.c,v 1.7 2017/12/05 13:45:31 kettenis Exp $ */ /* * Copyright (c) 2004,2005 Ted Unangst <tedu@openbsd.org> * All Rights Reserved. @@ -137,6 +137,7 @@ pthread_exit(void *retval) oclfn->fn(oclfn->arg); free(oclfn); } + _thread_finalize(); _rthread_tls_destructors(thread); if (_thread_cb.tc_thread_release != NULL) |