mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-09 21:22:20 +08:00
Replace "if (x) free (x)" with "free (x)", ld
* deffilep.y: Replace "if (x) free (x)" with "free (x)" thoughout. * emultempl/elf.em: Likewise. * emultempl/msp430.em: Likewise. * emultempl/pe.em: Likewise. * emultempl/pep.em: Likewise. * emultempl/ppc64elf.em: Likewise. * emultempl/xtensaelf.em: Likewise. * ldelf.c: Likewise. * ldfile.c: Likewise. * ldmain.c: Likewise. * ldmisc.c: Likewise. * lexsup.c: Likewise. * pe-dll.c: Likewise.
This commit is contained in:
@ -884,11 +884,8 @@ gld${EMULATION_NAME}_handle_option (int optc)
|
||||
pe_dll_characteristics |= IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE;
|
||||
break;
|
||||
case OPTION_BUILD_ID:
|
||||
if (emit_build_id != NULL)
|
||||
{
|
||||
free ((char *) emit_build_id);
|
||||
emit_build_id = NULL;
|
||||
}
|
||||
free ((char *) emit_build_id);
|
||||
emit_build_id = NULL;
|
||||
if (optarg == NULL)
|
||||
optarg = DEFAULT_BUILD_ID_STYLE;
|
||||
if (strcmp (optarg, "none"))
|
||||
|
Reference in New Issue
Block a user