From 9666e36c186323b3f9fa6efe05cf6095a599083a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 3 Nov 2006 17:01:41 +0000 Subject: * malloc/memusage.c (dest): Reset not_me back to false after printing statistics. --- malloc/memusage.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'malloc') diff --git a/malloc/memusage.c b/malloc/memusage.c index 9003d8094a..bf2978ef02 100644 --- a/malloc/memusage.c +++ b/malloc/memusage.c @@ -887,4 +887,10 @@ dest (void) fputc ('=', stderr); fputs ("\e[0;0m\n", stderr); } + + /* Any following malloc/free etc. calls should generate statistics again, + because otherwise freeing something that has been malloced before + this destructor (including struct header in front of it) wouldn't + be properly freed. */ + not_me = false; } -- cgit v1.2.3