diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2011-01-18 17:43:56 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2011-01-18 17:43:56 +0000 |
commit | 2b52916eef5b07a8651af45db0992936f98263d2 (patch) | |
tree | 21226492aab13d5ef461d8d076ee75c7b0672463 /binutils | |
parent | e3949f17f39bb2cf78561541b0473cd93cb000cf (diff) | |
download | gdb-2b52916eef5b07a8651af45db0992936f98263d2.zip gdb-2b52916eef5b07a8651af45db0992936f98263d2.tar.gz gdb-2b52916eef5b07a8651af45db0992936f98263d2.tar.bz2 |
Reset dump_sects after processing each archive member.
2011-01-18 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/12408
* readelf.c (process_archive): Free and reset dump_sects
after processing each archive member.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 6 | ||||
-rw-r--r-- | binutils/readelf.c | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 9287fda..4e62cdc 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2011-01-18 H.J. Lu <hongjiu.lu@intel.com> + + PR binutils/12408 + * readelf.c (process_archive): Free and reset dump_sects + after processing each archive member. + 2011-01-11 Andreas Schwab <schwab@redhat.com> * readelf.c (print_symbol): Handle symbol characters as unsigned. diff --git a/binutils/readelf.c b/binutils/readelf.c index a9f271d..abc251a 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -12640,6 +12640,13 @@ process_archive (char * file_name, FILE * file, bfd_boolean is_thin_archive) ret |= process_object (qualified_name, file); } + if (dump_sects != NULL) + { + free (dump_sects); + dump_sects = NULL; + num_dump_sects = 0; + } + free (qualified_name); } |