diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2007-12-03 02:31:40 -0500 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2007-12-10 14:38:48 -0500 |
commit | 78dac47399038cc9a05b82b01c4e4b35132f0784 (patch) | |
tree | 4782f32b99802789dcee3ff89edbdf908cdeceff /util/malloc-stats.c | |
parent | dd71ac910c3c176687fe4da582876bf46becf6d5 (diff) | |
download | cairo-78dac47399038cc9a05b82b01c4e4b35132f0784.tar.gz |
[util/malloc-stats.c] Add a public function malloc_stats()
Apparently glibc already provides the function:
void malloc_stats (void);
So, like we do for backtrace_symbols(), override the public symbol.
It still is defined as __destructor__ and runs at program finalization.
Diffstat (limited to 'util/malloc-stats.c')
-rw-r--r-- | util/malloc-stats.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/util/malloc-stats.c b/util/malloc-stats.c index 77c2f33f5..59a78873d 100644 --- a/util/malloc-stats.c +++ b/util/malloc-stats.c @@ -275,8 +275,8 @@ merge_similar_entries (void) } __attribute__ ((destructor)) -static void -finish (void) +void +malloc_stats (void) { int i; @@ -298,4 +298,3 @@ finish (void) } } } - |