Browse Source

* objcopy.c (copy_object): Set isympp and osympp to NULL after free.

readline_5_1-import-branch
Alan Modra 21 years ago
parent
commit
e2ba7bd7d0
  1. 4
      binutils/ChangeLog
  2. 10
      binutils/objcopy.c

4
binutils/ChangeLog

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

10
binutils/objcopy.c

@ -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. */

Loading…
Cancel
Save