aboutsummaryrefslogtreecommitdiffstats
path: root/libc/malloc_debug
diff options
context:
space:
mode:
Diffstat (limited to 'libc/malloc_debug')
-rw-r--r--libc/malloc_debug/malloc_debug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/malloc_debug/malloc_debug.cpp b/libc/malloc_debug/malloc_debug.cpp
index aa6f5f747..fdad5416c 100644
--- a/libc/malloc_debug/malloc_debug.cpp
+++ b/libc/malloc_debug/malloc_debug.cpp
@@ -594,7 +594,7 @@ int debug_iterate(uintptr_t base, size_t size,
if (g_debug->track->Contains(header)) {
// Return just the body of the allocation if we're sure the header exists
ctx->callback(reinterpret_cast<uintptr_t>(g_debug->GetPointer(header)),
- header->real_size(), ctx->arg);
+ header->usable_size, ctx->arg);
return;
}
}