From: Ulrich Drepper Date: Thu, 28 Oct 2004 19:09:21 +0000 (+0000) Subject: Update. X-Git-Tag: upstream/2.30~17248 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1fbd85875b335d88e3a531efc66ce972a010493;p=external%2Fglibc.git Update. 2004-10-28 Jakub Jelinek * pthread_create.c (__pthread_create_2_1): Avoid leaking stacks if sched_priority is not between minprio and maxprio. --- diff --git a/nptl/ChangeLog b/nptl/ChangeLog index be5893d..4c7f671 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,8 @@ +2004-10-28 Jakub Jelinek + + * pthread_create.c (__pthread_create_2_1): Avoid leaking stacks + if sched_priority is not between minprio and maxprio. + 2004-10-25 Kaz Kojima * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c index 1bab72d..7293f4c 100644 --- a/nptl/pthread_create.c +++ b/nptl/pthread_create.c @@ -459,10 +459,12 @@ __pthread_create_2_1 (newthread, attr, start_routine, arg) err = create_thread (pd, iattr, STACK_VARIABLES_ARGS); if (err != 0) { - errout: /* Something went wrong. Free the resources. */ if (!is_detached) - __deallocate_stack (pd); + { + errout: + __deallocate_stack (pd); + } return err; }