aboutsummaryrefslogtreecommitdiff
path: root/malloc/mcheck-impl.c
diff options
context:
space:
mode:
Diffstat (limited to 'malloc/mcheck-impl.c')
-rw-r--r--malloc/mcheck-impl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/malloc/mcheck-impl.c b/malloc/mcheck-impl.c
index 8857e6b179..6597a290a6 100644
--- a/malloc/mcheck-impl.c
+++ b/malloc/mcheck-impl.c
@@ -404,3 +404,9 @@ __mcheck_initialize (void (*func) (enum mcheck_status), bool in_pedantic)
pedantic = in_pedantic;
return 0;
}
+
+static int
+mcheck_usable_size (struct hdr *h)
+{
+ return (h - 1)->size;
+}