mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Fix two leaks, both pointed out by Kjartan Maraas
2007-03-02 Soren Sandmann <sandmann@daimi.au.dk> Fix two leaks, both pointed out by Kjartan Maraas * binparser.c (bin_parser_free): Free the record list * elfparser.c (elf_parser_free): Free the symbol table. svn path=/trunk/; revision=356
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
6fa782dcd6
commit
5ee13adc34
@ -1,3 +1,11 @@
|
||||
2007-03-02 Soren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
Fix two leaks, both pointed out by Kjartan Maraas
|
||||
|
||||
* binparser.c (bin_parser_free): Free the record list
|
||||
|
||||
* elfparser.c (elf_parser_free): Free the symbol table.
|
||||
|
||||
2007-02-24 Soren Sandmann <sandmann@daimi.au.dk>
|
||||
|
||||
* TODO: Updates
|
||||
|
||||
@ -330,7 +330,7 @@ elf_parser_get_crc32 (ElfParser *parser)
|
||||
* pagefaults.
|
||||
*/
|
||||
madvise ((char *)data, length, MADV_DONTNEED);
|
||||
|
||||
|
||||
return ~crc & 0xffffffff;
|
||||
}
|
||||
|
||||
@ -346,6 +346,8 @@ elf_parser_free (ElfParser *parser)
|
||||
if (parser->file)
|
||||
g_mapped_file_free (parser->file);
|
||||
|
||||
g_free (parser->symbols);
|
||||
|
||||
bin_parser_free (parser->parser);
|
||||
|
||||
g_free (parser);
|
||||
|
||||
Reference in New Issue
Block a user