2011-03-08 Michael Snyder <msnyder@vmware.com>

* wrstabs.c (stab_start_struct_type): Close memory leak.
This commit is contained in:
Michael Snyder 2011-03-14 19:05:39 +00:00
parent 824446ad10
commit c30fe01daf
2 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,7 @@
2011-03-14 Michael Snyder <msnyder@vmware.com> 2011-03-14 Michael Snyder <msnyder@vmware.com>
* wrstabs.c (stab_start_struct_type): Close memory leak.
* readelf.c (process_version_sections): Free symbols. * readelf.c (process_version_sections): Free symbols.
* nm.c (display_rel_file): Free symsizes. * nm.c (display_rel_file): Free symsizes.

View file

@ -1312,9 +1312,7 @@ stab_start_struct_type (void *p, const char *tag, unsigned int id,
struct stab_write_handle *info = (struct stab_write_handle *) p; struct stab_write_handle *info = (struct stab_write_handle *) p;
long tindex; long tindex;
bfd_boolean definition; bfd_boolean definition;
char *buf; char buf[40];
buf = (char *) xmalloc (40);
if (id == 0) if (id == 0)
{ {