From: Michael Snyder Date: Mon, 14 Mar 2011 17:48:31 +0000 (+0000) Subject: 2011-03-07 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0429c154e12645d99b8479a39c948f42f18d823c;p=binutils-gdb.git 2011-03-07 Michael Snyder * readelf.c (process_version_sections): Free symbols. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 3f33f80bb65..2ec667f0897 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,7 @@ 2011-03-14 Michael Snyder + * readelf.c (process_version_sections): Free symbols. + * nm.c (display_rel_file): Free symsizes. 2011-03-10 Nick Clifton diff --git a/binutils/readelf.c b/binutils/readelf.c index 71f05017607..6a4a6e8d231 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -8053,7 +8053,10 @@ process_version_sections (FILE * file) string_sec->sh_size, _("version string table")); if (!strtab) - break; + { + free (symbols); + break; + } printf (_("\nVersion symbols section '%s' contains %d entries:\n"), SECTION_NAME (section), total); @@ -8073,6 +8076,7 @@ process_version_sections (FILE * file) if (!edata) { free (strtab); + free (symbols); break; }