mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Valgrind:
2006-11-02 Soren Sandmann <sandmann@daimi.au.dk> Valgrind: * binparser.c (bin_parser_free): Add this function * elfparser.c (elf_parser_free): Call bin_parser_free() * sysprof.c (compute_text_width, add_text): Plug leaks * collector.c (add_trace_to_stash): Copy n_addresses to a stack variable instead of reading it out of the mmap'ed area all the time. (That way if there is an overrun, we won't write too much into the address array).
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
9a1ed3d336
commit
0513ed87e8
@ -54,6 +54,12 @@ bin_parser_new (const guchar *data,
|
||||
return parser;
|
||||
}
|
||||
|
||||
void
|
||||
bin_parser_free (BinParser *parser)
|
||||
{
|
||||
g_free (parser);
|
||||
}
|
||||
|
||||
static GQueue *
|
||||
read_varargs (va_list args,
|
||||
const char * name,
|
||||
|
||||
Reference in New Issue
Block a user