aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2004-10-19 19:30:33 +0000
committerH.J. Lu <hjl.tools@gmail.com>2004-10-19 19:30:33 +0000
commit5ab0c1a19608d2689539b687e92ed20da6c1c8e2 (patch)
tree5624380bc3ce1814220e4232c232b02034921161 /binutils/readelf.c
parent1c0f67c194c6c0ad099d6bafaa755d9970037ec4 (diff)
downloadgdb-5ab0c1a19608d2689539b687e92ed20da6c1c8e2.zip
gdb-5ab0c1a19608d2689539b687e92ed20da6c1c8e2.tar.gz
gdb-5ab0c1a19608d2689539b687e92ed20da6c1c8e2.tar.bz2
2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (process_section_groups): Free symtab after use.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c2
1 files changed, 2 insertions, 0 deletions
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)