mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-03 14:48:06 +02:00
[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.
This commit is contained in:
parent
dd71ac910c
commit
78dac47399
1 changed files with 2 additions and 3 deletions
|
|
@ -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)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue