From: Jakub Jelinek Date: Fri, 3 Nov 2006 16:38:22 +0000 (+0000) Subject: * malloc/memusage.c (dest): Reset not_me back to false after printing X-Git-Tag: cvs/fedora-glibc-2_5_90-4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c72abb4969f2b376a5e58c88424bd3b9c9c70b5;p=thirdparty%2Fglibc.git * malloc/memusage.c (dest): Reset not_me back to false after printing statistics. --- diff --git a/ChangeLog b/ChangeLog index e5f9d7d13f7..876c91d494a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-11-02 Jakub Jelinek + + * malloc/memusage.c (dest): Reset not_me back to false after printing + statistics. + 2006-11-02 Ulrich Drepper * configure.in: Work around ld --help change and avoid -z relro diff --git a/malloc/memusage.c b/malloc/memusage.c index 9003d8094ae..bf2978ef02f 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; }