mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-02 02:35:00 +08:00
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:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user