projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0283863
)
objdump: Free sorted_syms on error path
author
Alan Modra
<amodra@gmail.com>
Wed, 30 Aug 2023 01:48:01 +0000
(11:18 +0930)
committer
Alan Modra
<amodra@gmail.com>
Wed, 30 Aug 2023 01:52:23 +0000
(11:22 +0930)
* objdump.c (disassemble_data): Free sorted_syms before returning.
binutils/objdump.c
patch
|
blob
|
history
diff --git
a/binutils/objdump.c
b/binutils/objdump.c
index fb0db5d4fe835a552302632407ae1436176ec12c..608134265669d724cca54c605c553abc9fc58944 100644
(file)
--- a/
binutils/objdump.c
+++ b/
binutils/objdump.c
@@
-4151,6
+4151,7
@@
disassemble_data (bfd *abfd)
non_fatal (_("can't disassemble for architecture %s\n"),
bfd_printable_arch_mach (bfd_get_arch (abfd), 0));
exit_status = 1;
+ free (sorted_syms);
return;
}