]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
xtensa unnecessary free
authorAlan Modra <amodra@gmail.com>
Thu, 16 Jan 2025 23:13:34 +0000 (09:43 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 17 Jan 2025 05:37:48 +0000 (16:07 +1030)
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.

ld/emultempl/xtensaelf.em

index 6c74bebb4e30297dfde74312c62b10f07b9bff0b..e3a9b2e6cf8dec1c99764c6ad5d4e5d5ebd1b501 100644 (file)
@@ -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;
 }