Skip to content

Commit

Permalink
* malloc/memusage.c (dest): Reset not_me back to false after
Browse files Browse the repository at this point in the history
	printing statistics.
  • Loading branch information
Ulrich Drepper committed Nov 3, 2006
1 parent a0e3159 commit 9666e36
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 6 additions & 0 deletions malloc/memusage.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 9666e36

Please sign in to comment.