projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace "if (x) free (x)" with "free (x)", bfd
[deliverable/binutils-gdb.git]
/
bfd
/
linker.c
diff --git
a/bfd/linker.c
b/bfd/linker.c
index 3820ce14f83a7b2f591d8b7b0ee9dfa0025791f5..d4057461a3f4a358f138f3d1b74694160e3c553a 100644
(file)
--- a/
bfd/linker.c
+++ b/
bfd/linker.c
@@
-2661,13
+2661,11
@@
default_indirect_link_order (bfd *output_bfd,
new_contents, loc, input_section->size))
goto error_return;
new_contents, loc, input_section->size))
goto error_return;
- if (contents != NULL)
- free (contents);
+ free (contents);
return TRUE;
error_return:
return TRUE;
error_return:
- if (contents != NULL)
- free (contents);
+ free (contents);
return FALSE;
}
return FALSE;
}
@@
-2894,10
+2892,8
@@
_bfd_handle_already_linked (asection *sec,
(_("%pB: duplicate section `%pA' has different contents\n"),
sec->owner, sec);
(_("%pB: duplicate section `%pA' has different contents\n"),
sec->owner, sec);
- if (sec_contents)
- free (sec_contents);
- if (l_sec_contents)
- free (l_sec_contents);
+ free (sec_contents);
+ free (l_sec_contents);
}
break;
}
}
break;
}
This page took
0.022812 seconds
and
4
git commands to generate.