PATCH: Fix a memory leak in readelf.c
H. J. Lu
hjl@lucon.org
Tue Oct 19 19:29:00 GMT 2004
I will check this patch shortly.
H.J.
----
2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (process_section_groups): Free symtab after use.
--- readelf.c.big 2004-10-13 10:06:01.000000000 -0700
+++ readelf.c 2004-10-19 12:23:13.113362251 -0700
@@ -4034,6 +4034,8 @@ process_section_groups (FILE *file)
group->root = g;
}
+ if (symtab)
+ free (symtab);
if (strtab)
free (strtab);
if (start)
More information about the Binutils
mailing list