From 9db70fc3656064555873332003d842b880ca470c Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 20 May 2020 22:48:41 +0930 Subject: 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. --- binutils/windmc.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'binutils/windmc.c') 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; -- cgit v1.1