]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 28 Oct 2004 19:09:21 +0000 (19:09 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 28 Oct 2004 19:09:21 +0000 (19:09 +0000)
2004-10-28  Jakub Jelinek  <jakub@redhat.com>

* pthread_create.c (__pthread_create_2_1): Avoid leaking stacks
if sched_priority is not between minprio and maxprio.

nptl/ChangeLog
nptl/pthread_create.c

index be5893d3d81fc6f7da6864387d7bb64bed114566..4c7f671f60dbc7920ecffaeccaea77c1a941daf1 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-28  Jakub Jelinek  <jakub@redhat.com>
+
+       * pthread_create.c (__pthread_create_2_1): Avoid leaking stacks
+       if sched_priority is not between minprio and maxprio.
+
 2004-10-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
 
        * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
index 1bab72d1e998f90d794df67179fdfef59e256aa9..7293f4c71cf5262094f4f5f89878e984ded9343f 100644 (file)
@@ -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;
     }
 
This page took 0.055471 seconds and 5 git commands to generate.