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
/
vms-lib.c
diff --git
a/bfd/vms-lib.c
b/bfd/vms-lib.c
index 6a8a76ecb034bb9b155dee595d07ca658e2c0ba6..f000bc2a8f1fbf08fd9db209a0d872deb8090dc0 100644
(file)
--- a/
bfd/vms-lib.c
+++ b/
bfd/vms-lib.c
@@
-2045,8
+2045,7
@@
_bfd_vms_lib_build_map (unsigned int nbr_modules,
{
if (storage > syms_max)
{
{
if (storage > syms_max)
{
- if (syms_max > 0)
- free (syms);
+ free (syms);
syms_max = storage;
syms = (asymbol **) bfd_malloc (syms_max);
if (syms == NULL)
syms_max = storage;
syms = (asymbol **) bfd_malloc (syms_max);
if (syms == NULL)
@@
-2097,10
+2096,8
@@
_bfd_vms_lib_build_map (unsigned int nbr_modules,
return TRUE;
error_return:
return TRUE;
error_return:
- if (syms_max > 0)
- free (syms);
- if (map != NULL)
- free (map);
+ free (syms);
+ free (map);
return FALSE;
}
return FALSE;
}
This page took
0.044643 seconds
and
4
git commands to generate.