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:
Soren Sandmann
2006-11-02 08:33:35 +00:00
committed by Søren Sandmann Pedersen
parent 9a1ed3d336
commit 0513ed87e8
5 changed files with 40 additions and 4 deletions

View File

@ -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,