* readelf.c (process_object): Free dynamic_section after use.

This commit is contained in:
Maciej W. Rozycki 2011-01-19 18:19:54 +00:00
parent 4694da0147
commit 293c573efd
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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);