mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-23 15:01:03 +03:00
Update.
2003-03-08 Ulrich Drepper <drepper@redhat.com> * allocatestack.c (allocate_stack): If mprotect() fails free the TLS memory.
This commit is contained in:
@ -439,9 +439,12 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp,
|
||||
|
||||
lll_unlock (stack_cache_lock);
|
||||
|
||||
/* Free the memory regardless of whether the size of the
|
||||
cache is over the limit or not. If this piece of
|
||||
memory caused problems we better do not use it
|
||||
/* Get rid of the TLS block we allocated. */
|
||||
_dl_deallocate_tls (pd, false);
|
||||
|
||||
/* Free the stack memory regardless of whether the size
|
||||
of the cache is over the limit or not. If this piece
|
||||
of memory caused problems we better do not use it
|
||||
anymore. Uh, and we ignore possible errors. There
|
||||
is nothing we could do. */
|
||||
(void) munmap (mem, size);
|
||||
|
Reference in New Issue
Block a user