diff options
author | Alan Modra <amodra@gmail.com> | 2020-05-20 22:48:41 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-05-21 10:45:33 +0930 |
commit | 9db70fc3656064555873332003d842b880ca470c (patch) | |
tree | d1aaec716012f043f5ba4aa0e43bf879a32be214 /binutils/windmc.c | |
parent | c95949892f6f1e2974a0fb8a5463d7b6432ac469 (diff) | |
download | gdb-9db70fc3656064555873332003d842b880ca470c.zip gdb-9db70fc3656064555873332003d842b880ca470c.tar.gz gdb-9db70fc3656064555873332003d842b880ca470c.tar.bz2 |
Replace "if (x) free (x)" with "free (x)", binutils
* addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
* dlltool.c: Likewise.
* elfcomm.c: Likewise.
* rddbg.c: Likewise.
* readelf.c: Likewise.
* stabs.c: Likewise.
* windmc.c: Likewise.
* windres.c: Likewise.
* wrstabs.c: Likewise.
Diffstat (limited to 'binutils/windmc.c')
-rw-r--r-- | binutils/windmc.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/binutils/windmc.c b/binutils/windmc.c index 31ebde3..0aae650 100644 --- a/binutils/windmc.c +++ b/binutils/windmc.c @@ -1161,12 +1161,9 @@ main (int argc, char **argv) } write_bin (); - if (mc_nodes_lang) - free (mc_nodes_lang); - if (mc_severity_codes) - free (mc_severity_codes); - if (mc_facility_codes) - free (mc_facility_codes); + free (mc_nodes_lang); + free (mc_severity_codes); + free (mc_facility_codes); xexit (0); return 0; |