]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* 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 dd8c407cbc47311fa90e76a6155f7d48aa5cdf59..c5c8a4b8c7d80b8ee24f8046d02fa466053e6210 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 9003d8094ae2a418f45175be58ffe2cd6808853d..bf2978ef02f98fa62b50a974d9b48690ee36a833 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;
 }