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:
parent
c95949892f
commit
9db70fc365
10 changed files with 92 additions and 176 deletions
|
@ -1224,8 +1224,7 @@ stab_method_type (void *p, bfd_boolean domainp, int argcount,
|
|||
}
|
||||
strcat (buf, ";");
|
||||
|
||||
if (args != NULL)
|
||||
free (args);
|
||||
free (args);
|
||||
|
||||
if (! stab_push_string (info, buf, 0, definition, 0))
|
||||
return FALSE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue