aboutsummaryrefslogtreecommitdiff
path: root/malloc/malloc-check.c
diff options
context:
space:
mode:
Diffstat (limited to 'malloc/malloc-check.c')
-rw-r--r--malloc/malloc-check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/malloc/malloc-check.c b/malloc/malloc-check.c
index 814a916..c5265ec 100644
--- a/malloc/malloc-check.c
+++ b/malloc/malloc-check.c
@@ -235,7 +235,7 @@ free_check (void *mem)
{
/* Mark the chunk as belonging to the library again. */
(void)tag_region (chunk2mem (p), memsize (p));
- _int_free (&main_arena, p, 1);
+ _int_free_chunk (&main_arena, p, chunksize (p), 1);
__libc_lock_unlock (main_arena.mutex);
}
__set_errno (err);