diff options
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 4 | ||||
-rw-r--r-- | binutils/readelf.c | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 4e62cdc..d02f458 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2011-01-19 Maciej W. Rozycki <macro@codesourcery.com> + + * readelf.c (process_object): Free dynamic_section after use. + 2011-01-18 H.J. Lu <hongjiu.lu@intel.com> PR binutils/12408 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); |