2011-03-06 Michael Snyder <msnyder@vmware.com>
+ * elfread.c (elf_symtab_read): Stop memory leak.
+
* main.c (captured_main): Fix memory leak.
2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
char *filesymname = "";
struct dbx_symfile_info *dbx = objfile->deprecated_sym_stab_info;
int stripped = (bfd_get_symcount (objfile->obfd) == 0);
+ struct cleanup *back_to = make_cleanup (null_cleanup, NULL);
for (i = 0; i < number_of_symbols; i++)
{
+ (sizeof (CORE_ADDR) * max_index));
sectinfo = (struct stab_section_info *)
xmalloc (size);
+ make_cleanup (xfree, sectinfo);
memset (sectinfo, 0, size);
sectinfo->num_sections = max_index;
if (filesym == NULL)
}
}
}
+ do_cleanups (back_to);
}
struct build_id