about summary refs log tree commit diff
path: root/malloc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-11-03 17:01:41 +0000
committerUlrich Drepper <drepper@redhat.com>2006-11-03 17:01:41 +0000
commit9666e36c186323b3f9fa6efe05cf6095a599083a (patch)
tree5ee4d7632cb79f998b8f527db37ac678a0650680 /malloc
parenta0e3159152f1b71262cca0b22714bf2f791146d8 (diff)
downloadglibc-9666e36c186323b3f9fa6efe05cf6095a599083a.tar.gz
glibc-9666e36c186323b3f9fa6efe05cf6095a599083a.tar.xz
glibc-9666e36c186323b3f9fa6efe05cf6095a599083a.zip
* malloc/memusage.c (dest): Reset not_me back to false after
	printing statistics.
Diffstat (limited to 'malloc')
-rw-r--r--malloc/memusage.c6
1 files changed, 6 insertions, 0 deletions
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;
 }