diff options
Diffstat (limited to 'malloc')
-rw-r--r-- | malloc/malloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c index 17dd0a9..e00eb0f 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; |