aboutsummaryrefslogtreecommitdiff
path: root/malloc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-01-10 18:34:43 +0000
committerUlrich Drepper <drepper@redhat.com>2008-01-10 18:34:43 +0000
commitab355d9aa5186937757b20b93f7d52ea3926427a (patch)
tree202797696b5ede624ce3e0bfeb14e39dc4d5dc5f /malloc
parentf6bacb8ef4dfcee39864d6383e3660d8ac267d23 (diff)
downloadglibc-ab355d9aa5186937757b20b93f7d52ea3926427a.tar
glibc-ab355d9aa5186937757b20b93f7d52ea3926427a.tar.gz
glibc-ab355d9aa5186937757b20b93f7d52ea3926427a.tar.bz2
glibc-ab355d9aa5186937757b20b93f7d52ea3926427a.zip
* pthread-errnos.sym: Add EOVERFLOW.
* sysdeps/unix/sysv/linux/structsem.sym: Add SEM_VALUE_MAX. * sysdeps/unix/sysv/linux/sem_post.c: Don't overflow value field. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
Diffstat (limited to 'malloc')
-rw-r--r--malloc/malloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 17dd0a9c96..e00eb0f4e2 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -3781,7 +3781,8 @@ public_mEMALIGn(size_t alignment, size_t bytes)
}
#endif
}
- }
+ } else
+ (void)mutex_unlock(&ar_ptr->mutex);
assert(!p || chunk_is_mmapped(mem2chunk(p)) ||
ar_ptr == arena_for_chunk(mem2chunk(p)));
return p;