From: Alan Modra Date: Thu, 16 Jan 2025 23:13:34 +0000 (+1030) Subject: xtensa unnecessary free X-Git-Tag: binutils-2_44~69 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=006ccbe61ad0b61622a0934dd607f37620afc30a;p=thirdparty%2Fbinutils-gdb.git xtensa unnecessary free No path to "cleanup" label has internal_relocs malloc'd. * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Don't free internal_relocs in cleanup. --- diff --git a/ld/emultempl/xtensaelf.em b/ld/emultempl/xtensaelf.em index 6c74bebb4e3..e3a9b2e6cf8 100644 --- a/ld/emultempl/xtensaelf.em +++ b/ld/emultempl/xtensaelf.em @@ -231,7 +231,6 @@ replace_insn_sec_with_prop_sec (bfd *abfd, if (prop_sec && prop_sec->owner) remove_section (abfd, prop_sec); free (insn_contents); - free (internal_relocs); return false; }