(pthread_exit_process): Free memory allocated for manager stack.
authordrepper <drepper>
Mon, 8 Jan 2001 08:36:13 +0000 (08:36 +0000)
committerdrepper <drepper>
Mon, 8 Jan 2001 08:36:13 +0000 (08:36 +0000)
linuxthreads/pthread.c

index 75cac05..836d8a8 100644 (file)
@@ -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);
+      }
   }
 }