aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--binutils/ChangeLog4
-rw-r--r--binutils/readelf.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 9101bf5..39f96c6 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,7 @@
+2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
+
+ * readelf.c (process_section_groups): Free symtab after use.
+
2004-10-18 Tommy Pettersson <ptp@lysator.liu.se>
Nick Clifton <nickc@redhat.com>
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 6f82f83..a65c82e 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -4034,6 +4034,8 @@ process_section_groups (FILE *file)
group->root = g;
}
+ if (symtab)
+ free (symtab);
if (strtab)
free (strtab);
if (start)