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 9101bf56fa0d9ccffa2d350fed1c1755bb00f9bf..39f96c69e830e0c6a43ffd78b8f07a7dcb7a844b 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 6f82f83f874e6fec28816c0b7fcb816b1b74ad5d..a65c82ea3ed276db38bb655b4b8b0ec3bafa6959 100644 (file)
@@ -4034,6 +4034,8 @@ process_section_groups (FILE *file)
              group->root = g;
            }
 
+         if (symtab)
+           free (symtab);
          if (strtab)
            free (strtab);
          if (start)