2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 19 Oct 2004 19:30:33 +0000 (19:30 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 19 Oct 2004 19:30:33 +0000 (19:30 +0000)
* readelf.c (process_section_groups): Free symtab after use.

binutils/ChangeLog
binutils/readelf.c

index 9101bf5..39f96c6 100644 (file)
@@ -1,3 +1,7 @@
+2004-10-19  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * readelf.c (process_section_groups): Free symtab after use.
+
 2004-10-18  Tommy Pettersson <ptp@lysator.liu.se>
            Nick Clifton  <nickc@redhat.com>
 
index 6f82f83..a65c82e 100644 (file)
@@ -4034,6 +4034,8 @@ process_section_groups (FILE *file)
              group->root = g;
            }
 
+         if (symtab)
+           free (symtab);
          if (strtab)
            free (strtab);
          if (start)