diff options
author | Jakub Jelinek <jakub@redhat.com> | 2006-11-03 16:38:22 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2006-11-03 16:38:22 +0000 |
commit | 2c72abb4969f2b376a5e58c88424bd3b9c9c70b5 (patch) | |
tree | dd6c605fe5e94545a4bcb44da72929cf45a49f3a /malloc | |
parent | 4820b9175535e13df79ce816106016040014916e (diff) |
* malloc/memusage.c (dest): Reset not_me back to false after printingcvs/fedora-glibc-2_5_90-4
statistics.
Diffstat (limited to 'malloc')
-rw-r--r-- | malloc/memusage.c | 6 |
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; } |