Fix segfault from last memory-leak fixing patch.
authorJim Wilson <wilson@tuliptree.org>
Mon, 28 Aug 2000 22:08:36 +0000 (22:08 +0000)
committerJim Wilson <wilson@tuliptree.org>
Mon, 28 Aug 2000 22:08:36 +0000 (22:08 +0000)
* ia64-dis.c (print_insn_ia64): Add failed label after ia64_free_opcode
call.  Change last goto to use failed instead of done.

opcodes/ChangeLog
opcodes/ia64-dis.c

index cbbe12e0233c522b4a89e2f59415fe01520a96da..ef0cdb8017ba8b8d179ac6879aaa0148076404cd 100644 (file)
@@ -1,3 +1,8 @@
+2000-08-28  Jim Wilson  <wilson@cygnus.com>
+
+       * ia64-dis.c (print_insn_ia64): Add failed label after ia64_free_opcode
+       call.  Change last goto to use failed instead of done.
+
 2000-08-28  Dave Brolley  <brolley@redhat.com>
 
        * cgen-ibld.in (cgen_put_insn_int_value): New function.
index 629a76820d3780304ac68c917991422d210eac1e..6e71728eb2a4f948e718fe9daeddb7d60453f37c 100644 (file)
@@ -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;
 }