aboutsummaryrefslogtreecommitdiff
path: root/binutils/objcopy.c
diff options
context:
space:
mode:
Diffstat (limited to 'binutils/objcopy.c')
-rw-r--r--binutils/objcopy.c13
1 files changed, 5 insertions, 8 deletions
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. */