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.
This commit is contained in:
Alan Modra 2020-05-20 22:48:41 +09:30
parent c95949892f
commit 9db70fc365
10 changed files with 92 additions and 176 deletions

View file

@ -704,8 +704,7 @@ quot (const char *string)
if ((buflen < slen * 2 + 2) || ! buf)
{
buflen = slen * 2 + 2;
if (buf)
free (buf);
free (buf);
buf = (char *) xmalloc (buflen);
}