aboutsummaryrefslogtreecommitdiff
path: root/binutils/windmc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-05-20 22:48:41 +0930
committerAlan Modra <amodra@gmail.com>2020-05-21 10:45:33 +0930
commit9db70fc3656064555873332003d842b880ca470c (patch)
treed1aaec716012f043f5ba4aa0e43bf879a32be214 /binutils/windmc.c
parentc95949892f6f1e2974a0fb8a5463d7b6432ac469 (diff)
downloadgdb-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.c9
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;