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 | f9365b11b5e89a9efcb5082d1224396391e177f5 (patch) | |
tree | cb78ba5b5493c4912adb2f1464e7c47f5024c1c6 /opcodes/ia64-dis.c | |
parent | 756ed20662a5a24a1e20d6b73ecd7aa5527ecdb9 (diff) | |
download | gdb-f9365b11b5e89a9efcb5082d1224396391e177f5.zip gdb-f9365b11b5e89a9efcb5082d1224396391e177f5.tar.gz gdb-f9365b11b5e89a9efcb5082d1224396391e177f5.tar.bz2 |
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 629a768..6e71728 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; } |