mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-02 19:46:09 +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:
@ -314,8 +314,7 @@ translate_addresses (bfd *abfd, asection *section)
|
||||
else
|
||||
printf ("\n");
|
||||
|
||||
if (alloc != NULL)
|
||||
free (alloc);
|
||||
free (alloc);
|
||||
}
|
||||
|
||||
if (base_names && filename != NULL)
|
||||
@ -410,11 +409,8 @@ process_file (const char *file_name, const char *section_name,
|
||||
|
||||
translate_addresses (abfd, section);
|
||||
|
||||
if (syms != NULL)
|
||||
{
|
||||
free (syms);
|
||||
syms = NULL;
|
||||
}
|
||||
free (syms);
|
||||
syms = NULL;
|
||||
|
||||
bfd_close (abfd);
|
||||
|
||||
|
Reference in New Issue
Block a user