diff options
author | Jakub Jelinek <jakub@redhat.com> | 2006-08-15 05:53:50 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2006-08-15 05:53:50 +0000 |
commit | 3a2ba84afba2d9b315c65aa46ba036fd22ef4fb0 (patch) | |
tree | 47a553a26365a6738426804af7609434daf047b8 /nptl/pthread_create.c | |
parent | 256926546643ba909661c83e7a7d24d733b9b390 (diff) |
Updated to fedora-glibc-20060815T0533
Diffstat (limited to 'nptl/pthread_create.c')
-rw-r--r-- | nptl/pthread_create.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c index c1ac199bb9..315722643b 100644 --- a/nptl/pthread_create.c +++ b/nptl/pthread_create.c @@ -206,6 +206,15 @@ __free_tcb (struct pthread *pd) running thread is gone. */ abort (); + /* Free TPP data. */ + if (__builtin_expect (pd->tpp != NULL, 0)) + { + struct priority_protection_data *tpp = pd->tpp; + + pd->tpp = NULL; + free (tpp); + } + /* Queue the stack memory block for reuse and exit the process. The kernel will signal via writing to the address returned by QUEUE-STACK when the stack is available. */ |