From: Alan Modra Date: Tue, 10 Jan 2006 22:14:18 +0000 (+0000) Subject: * objcopy.c (copy_object): Set isympp and osympp to NULL after free. X-Git-Tag: gdb-csl-20060226-branchpoint~350 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2ba7bd7d01e857a94538d3570da3caf14300a24;p=platform%2Fupstream%2Fbinutils.git * objcopy.c (copy_object): Set isympp and osympp to NULL after free. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 3c2b56a..dacc5da 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2006-01-11 Alan Modra + + * objcopy.c (copy_object): Set isympp and osympp to NULL after free. + 2006-01-09 Mike Frysinger : * readelf.c (guess_is_rela): Add case for Nios/Nios II. diff --git a/binutils/objcopy.c b/binutils/objcopy.c index e93534d..410498c 100644 --- a/binutils/objcopy.c +++ b/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. */