]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* malloc/memusage.c (dest): Reset not_me back to false after
authorJakub Jelinek <jakub@redhat.com>
Fri, 12 Jan 2007 15:25:43 +0000 (15:25 +0000)
committerJakub Jelinek <jakub@redhat.com>
Fri, 12 Jan 2007 15:25:43 +0000 (15:25 +0000)
printing statistics.

ChangeLog
malloc/memusage.c

index dc410a1f8c55985d57edecc890915c3540a79570..b3bdcc4426108c7b8faab2e1e39ffd43038c29bf 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-10-27  Ulrich Drepper  <drepper@redhat.com>
 
        * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
index 8b37c43a8afb0ecfd2ce7790a7e0646aceefb341..b5077ffe0b625e2f390e6c29341156c675463086 100644 (file)
@@ -1,5 +1,5 @@
 /* Profile heap and stack memory usage of running program.
-   Copyright (C) 1998-2002, 2004, 2005 Free Software Foundation, Inc.
+   Copyright (C) 1998-2002, 2004, 2005, 2006 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
 
@@ -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;
 }