diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-03-14 17:48:31 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-03-14 17:48:31 +0000 |
commit | 0429c154e12645d99b8479a39c948f42f18d823c (patch) | |
tree | 0e5b4c093ecd6e131c567af958fa6b4d153dda11 /binutils | |
parent | 497b9b328d7a66641e1d0947d611959e5724c34b (diff) | |
download | gdb-0429c154e12645d99b8479a39c948f42f18d823c.zip gdb-0429c154e12645d99b8479a39c948f42f18d823c.tar.gz gdb-0429c154e12645d99b8479a39c948f42f18d823c.tar.bz2 |
2011-03-07 Michael Snyder <msnyder@vmware.com>
* readelf.c (process_version_sections): Free symbols.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 2 | ||||
-rw-r--r-- | binutils/readelf.c | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 3f33f80..2ec667f 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,7 @@ 2011-03-14 Michael Snyder <msnyder@vmware.com> + * readelf.c (process_version_sections): Free symbols. + * nm.c (display_rel_file): Free symsizes. 2011-03-10 Nick Clifton <nickc@redhat.com> diff --git a/binutils/readelf.c b/binutils/readelf.c index 71f0501..6a4a6e8 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; } |