aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2025-01-17 09:43:34 +1030
committerAlan Modra <amodra@gmail.com>2025-01-17 16:07:48 +1030
commit006ccbe61ad0b61622a0934dd607f37620afc30a (patch)
tree328758ea0c37d1c57e322ef1e1d71fc142e952a4
parent9e2632e5b0065b09645e8dbbed04eaac24bf2c7f (diff)
downloadgdb-006ccbe61ad0b61622a0934dd607f37620afc30a.zip
gdb-006ccbe61ad0b61622a0934dd607f37620afc30a.tar.gz
gdb-006ccbe61ad0b61622a0934dd607f37620afc30a.tar.bz2
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.
-rw-r--r--ld/emultempl/xtensaelf.em1
1 files changed, 0 insertions, 1 deletions
diff --git a/ld/emultempl/xtensaelf.em b/ld/emultempl/xtensaelf.em
index 6c74beb..e3a9b2e 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;
}