summaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c6
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;
}