aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads')
-rw-r--r--linuxthreads/pthread.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/linuxthreads/pthread.c b/linuxthreads/pthread.c
index 75cac05..836d8a8 100644
--- a/linuxthreads/pthread.c
+++ b/linuxthreads/pthread.c
@@ -740,7 +740,10 @@ static void pthread_exit_process(int retcode, void *arg)
/* Main thread should accumulate times for thread manager and its
children, so that timings for main thread account for all threads. */
if (self == __pthread_main_thread)
- waitpid(__pthread_manager_thread.p_pid, NULL, __WCLONE);
+ {
+ waitpid(__pthread_manager_thread.p_pid, NULL, __WCLONE);
+ free (__pthread_manager_thread_bos);
+ }
}
}