* objcopy.c (copy_object): Set isympp and osympp to NULL after free.
authorAlan Modra <amodra@gmail.com>
Tue, 10 Jan 2006 22:14:18 +0000 (22:14 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 10 Jan 2006 22:14:18 +0000 (22:14 +0000)
binutils/ChangeLog
binutils/objcopy.c

index 3c2b56a0f7e6fd539d51b669241b737464d694b3..dacc5da1980e349bb5d11a046d898a72e43d7a01 100644 (file)
@@ -1,3 +1,7 @@
+2006-01-11  Alan Modra  <amodra@bigpond.net.au>
+
+       * objcopy.c (copy_object): Set isympp and osympp to NULL after free.
+
 2006-01-09  Mike Frysinger  <vapier@gentoo.org>:
 
        * readelf.c (guess_is_rela): Add case for Nios/Nios II.
index e93534d6fcc509ef429aee029a8edd010395c0f0..410498c8d8523c8128e15d5d606ecfa217ef540f 100644 (file)
@@ -1281,10 +1281,16 @@ copy_object (bfd *ibfd, bfd *obfd)
     }
 
   if (isympp)
-    free (isympp);
+    {
+      free (isympp);
+      isympp = NULL;
+    }
 
   if (osympp != isympp)
-    free (osympp);
+    {
+      free (osympp);
+      osympp = NULL;
+    }
 
   /* BFD mandates that all output sections be created and sizes set before
      any output is done.  Thus, we traverse all sections multiple times.  */
This page took 0.027544 seconds and 4 git commands to generate.