From: Maciej W. Rozycki Date: Wed, 19 Jan 2011 18:19:54 +0000 (+0000) Subject: * readelf.c (process_object): Free dynamic_section after use. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=293c573efde4ca9d3534b029703cd65022d572af;p=binutils-gdb.git * readelf.c (process_object): Free dynamic_section after use. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 4e62cdcb932..d02f4583fc1 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2011-01-19 Maciej W. Rozycki + + * readelf.c (process_object): Free dynamic_section after use. + 2011-01-18 H.J. Lu PR binutils/12408 diff --git a/binutils/readelf.c b/binutils/readelf.c index abc251a5001..af1a00208f2 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);