diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-03-14 17:48:30 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-03-14 17:48:30 +0000 |
commit | 270971cbab7b71aa113cf4343f895ee24226fb69 (patch) | |
tree | 9a010b4ebbe60da79663ec337a95d1728ccf2694 /binutils/readelf.c | |
parent | 7cd1db9a3fdc3a933b576cc327dae1eba237da62 (diff) | |
download | binutils-redhat-270971cbab7b71aa113cf4343f895ee24226fb69.tar.gz |
2011-03-07 Michael Snyder <msnyder@vmware.com>
* readelf.c (process_version_sections): Free symbols.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index 71f0501760..6a4a6e8d23 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; } |