aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2011-01-19 18:19:54 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2011-01-19 18:19:54 +0000
commit293c573efde4ca9d3534b029703cd65022d572af (patch)
tree633f7e67e478fd47b5d7f9807fbf52a4a6e97388 /binutils/readelf.c
parent4694da01479181361c847bb9185c458e1ec51c46 (diff)
downloadgdb-293c573efde4ca9d3534b029703cd65022d572af.zip
gdb-293c573efde4ca9d3534b029703cd65022d572af.tar.gz
gdb-293c573efde4ca9d3534b029703cd65022d572af.tar.bz2
* readelf.c (process_object): Free dynamic_section after use.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index abc251a..af1a002 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -12405,6 +12405,12 @@ process_object (char * file_name, FILE * file)
dynamic_syminfo = NULL;
}
+ if (dynamic_section)
+ {
+ free (dynamic_section);
+ dynamic_section = NULL;
+ }
+
if (section_headers_groups)
{
free (section_headers_groups);