aboutsummaryrefslogtreecommitdiff
path: root/malloc/hooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'malloc/hooks.c')
-rw-r--r--malloc/hooks.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/malloc/hooks.c b/malloc/hooks.c
index 2dc5cf55e5..87b9e52e43 100644
--- a/malloc/hooks.c
+++ b/malloc/hooks.c
@@ -367,6 +367,8 @@ realloc_check(oldmem, bytes, caller)
}
}
#if HAVE_MREMAP
+ } else {
+ newmem = chunk2mem(newp);
}
#endif
} else {