* malloc/memusage.c (dest): Reset not_me back to false after
authorUlrich Drepper <drepper@redhat.com>
Fri, 3 Nov 2006 17:01:41 +0000 (17:01 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 3 Nov 2006 17:01:41 +0000 (17:01 +0000)
printing statistics.

ChangeLog
malloc/memusage.c

index dd8c407..c5c8a4b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-11-02  Jakub Jelinek  <jakub@redhat.com>
+
+       * malloc/memusage.c (dest): Reset not_me back to false after
+       printing statistics.
+
 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
 
        * configure.in: Work around ld --help change and avoid -z relro
index 9003d80..bf2978e 100644 (file)
@@ -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;
 }