aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-03-14 17:48:31 +0000
committerMichael Snyder <msnyder@vmware.com>2011-03-14 17:48:31 +0000
commit0429c154e12645d99b8479a39c948f42f18d823c (patch)
tree0e5b4c093ecd6e131c567af958fa6b4d153dda11 /binutils
parent497b9b328d7a66641e1d0947d611959e5724c34b (diff)
downloadgdb-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/ChangeLog2
-rw-r--r--binutils/readelf.c6
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;
}