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

* readelf.c (process_version_sections): Free symbols.
This commit is contained in:
Michael Snyder
2011-03-14 17:48:31 +00:00
parent 497b9b328d
commit 0429c154e1
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2011-03-14 Michael Snyder <msnyder@vmware.com> 2011-03-14 Michael Snyder <msnyder@vmware.com>
* readelf.c (process_version_sections): Free symbols.
* nm.c (display_rel_file): Free symsizes. * nm.c (display_rel_file): Free symsizes.
2011-03-10 Nick Clifton <nickc@redhat.com> 2011-03-10 Nick Clifton <nickc@redhat.com>

View File

@ -8053,7 +8053,10 @@ process_version_sections (FILE * file)
string_sec->sh_size, string_sec->sh_size,
_("version string table")); _("version string table"));
if (!strtab) if (!strtab)
break; {
free (symbols);
break;
}
printf (_("\nVersion symbols section '%s' contains %d entries:\n"), printf (_("\nVersion symbols section '%s' contains %d entries:\n"),
SECTION_NAME (section), total); SECTION_NAME (section), total);
@ -8073,6 +8076,7 @@ process_version_sections (FILE * file)
if (!edata) if (!edata)
{ {
free (strtab); free (strtab);
free (symbols);
break; break;
} }