diff options
author | Alan Modra <amodra@gmail.com> | 2006-01-10 22:34:03 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2006-01-10 22:34:03 +0000 |
commit | 62d732f54031c330e112363204668ee69a0f4556 (patch) | |
tree | ddabc95241a15ce84062a2bd215d51cbd3e46079 /binutils | |
parent | 15550d6bec38f2381fdf52210d2acfda840e0500 (diff) | |
download | fsf-binutils-gdb-62d732f54031c330e112363204668ee69a0f4556.zip fsf-binutils-gdb-62d732f54031c330e112363204668ee69a0f4556.tar.gz fsf-binutils-gdb-62d732f54031c330e112363204668ee69a0f4556.tar.bz2 |
* objcopy.c (copy_object): Fix thinko.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 2 | ||||
-rw-r--r-- | binutils/objcopy.c | 13 |
2 files changed, 7 insertions, 8 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index dacc5da..1804208 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -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>: diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 410498c..2ab3d06 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -1281,16 +1281,13 @@ copy_object (bfd *ibfd, bfd *obfd) } if (isympp) - { - free (isympp); - isympp = NULL; - } + free (isympp); if (osympp != isympp) - { - free (osympp); - osympp = NULL; - } + 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. */ |