aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--malloc/memusage.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index dd8c407..c5c8a4b 100644
--- 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
diff --git a/malloc/memusage.c b/malloc/memusage.c
index 9003d80..bf2978e 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;
}