* objcopy.c (copy_object): Fix thinko.

This commit is contained in:
Alan Modra 2006-01-10 22:34:03 +00:00
parent 15550d6bec
commit 62d732f540
2 changed files with 7 additions and 8 deletions

View File

@ -1,5 +1,7 @@
2006-01-11 Alan Modra <amodra@bigpond.net.au>
* objcopy.c (copy_object): Fix thinko.
* objcopy.c (copy_object): Set isympp and osympp to NULL after free.
2006-01-09 Mike Frysinger <vapier@gentoo.org>:

View File

@ -1281,16 +1281,13 @@ copy_object (bfd *ibfd, bfd *obfd)
}
if (isympp)
{
free (isympp);
isympp = NULL;
}
if (osympp != isympp)
{
free (osympp);
isympp = NULL;
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. */