mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Update.
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.
This commit is contained in:
@ -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>
|
2004-10-25 Kaz Kojima <kkojima@rr.iij4u.or.jp>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
|
* sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
|
||||||
|
@ -459,10 +459,12 @@ __pthread_create_2_1 (newthread, attr, start_routine, arg)
|
|||||||
err = create_thread (pd, iattr, STACK_VARIABLES_ARGS);
|
err = create_thread (pd, iattr, STACK_VARIABLES_ARGS);
|
||||||
if (err != 0)
|
if (err != 0)
|
||||||
{
|
{
|
||||||
errout:
|
|
||||||
/* Something went wrong. Free the resources. */
|
/* Something went wrong. Free the resources. */
|
||||||
if (!is_detached)
|
if (!is_detached)
|
||||||
|
{
|
||||||
|
errout:
|
||||||
__deallocate_stack (pd);
|
__deallocate_stack (pd);
|
||||||
|
}
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user