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
/
pef.c
diff --git
a/bfd/pef.c
b/bfd/pef.c
index 4e749e1949789946e540420920be43a940d5118d..53958f12400ecb2694b8daba8c3cad1b9f8f243e 100644
(file)
--- a/
bfd/pef.c
+++ b/
bfd/pef.c
@@
-505,13
+505,11
@@
bfd_pef_scan_start_address (bfd *abfd)
abfd->start_address = section->vma + header.main_offset;
end:
abfd->start_address = section->vma + header.main_offset;
end:
- if (loaderbuf != NULL)
- free (loaderbuf);
+ free (loaderbuf);
return 0;
error:
return 0;
error:
- if (loaderbuf != NULL)
- free (loaderbuf);
+ free (loaderbuf);
return -1;
}
return -1;
}
@@
-868,18
+866,14
@@
bfd_pef_parse_function_stubs (bfd *abfd,
goto end;
end:
goto end;
end:
- if (libraries != NULL)
- free (libraries);
- if (imports != NULL)
- free (imports);
+ free (libraries);
+ free (imports);
*nsym = count;
return 0;
error:
*nsym = count;
return 0;
error:
- if (libraries != NULL)
- free (libraries);
- if (imports != NULL)
- free (imports);
+ free (libraries);
+ free (imports);
*nsym = count;
return -1;
}
*nsym = count;
return -1;
}
@@
-941,12
+935,8
@@
bfd_pef_parse_symbols (bfd *abfd, asymbol **csym)
csym[count] = NULL;
end:
csym[count] = NULL;
end:
- if (codebuf != NULL)
- free (codebuf);
-
- if (loaderbuf != NULL)
- free (loaderbuf);
-
+ free (codebuf);
+ free (loaderbuf);
return count;
}
return count;
}
This page took
0.025015 seconds
and
4
git commands to generate.