diff options
author | Jim Wilson <wilson@tuliptree.org> | 2000-08-28 22:08:36 +0000 |
---|---|---|
committer | Jim Wilson <wilson@tuliptree.org> | 2000-08-28 22:08:36 +0000 |
commit | 8aa4e458381aac233963d36a98593b6b55b8b1bc (patch) | |
tree | 253f48ee13084ede9140d4c2f27365fe0ad1d124 /opcodes/ia64-dis.c | |
parent | 3cfc8521ee2e0a110d4c2f007c571b1b76a9411e (diff) | |
download | binutils-redhat-8aa4e458381aac233963d36a98593b6b55b8b1bc.tar.gz |
Fix segfault from last memory-leak fixing patch.
* ia64-dis.c (print_insn_ia64): Add failed label after ia64_free_opcode
call. Change last goto to use failed instead of done.
Diffstat (limited to 'opcodes/ia64-dis.c')
-rw-r--r-- | opcodes/ia64-dis.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/opcodes/ia64-dis.c b/opcodes/ia64-dis.c index 629a76820d..6e71728eb2 100644 --- a/opcodes/ia64-dis.c +++ b/opcodes/ia64-dis.c @@ -262,11 +262,12 @@ print_insn_ia64 (bfd_vma memaddr, struct disassemble_info *info) done: ia64_free_opcode (idesc); + failed: if (slotnum == 2) retval += 16 - 3*slot_multiplier; return retval; decoding_failed: (*info->fprintf_func) (info->stream, " data8 %#011llx", insn); - goto done; + goto failed; } |