From d4626dbd708edb991489d76a84ee2414cf83ce9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Sun, 19 Feb 2017 19:49:27 +0100 Subject: [PATCH] When freeing a mapped allocation, call UTRACE_FREE() again for the metadata. --- lib/test/cryb_t_malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/test/cryb_t_malloc.c b/lib/test/cryb_t_malloc.c index b532daf..d0f98ac 100644 --- a/lib/test/cryb_t_malloc.c +++ b/lib/test/cryb_t_malloc.c @@ -464,7 +464,7 @@ free(void *p) if (m == mappings) mappings = m->next; /* fall through and free metadata */ - p = m; + UTRACE_FREE(p = m); ++nmapfree; break; }