diff options
author | Jim Wilson <wilson@tuliptree.org> | 2000-08-02 21:24:54 +0000 |
---|---|---|
committer | Jim Wilson <wilson@tuliptree.org> | 2000-08-02 21:24:54 +0000 |
commit | 3d56ab850cf81361423699ed8d78c40199d22862 (patch) | |
tree | 5a84e31d0909eb00794cb5865f447bf7841b9d18 /opcodes | |
parent | 63266560e98843b391a571290bc6d5dfb788d0f5 (diff) | |
download | gdb-3d56ab850cf81361423699ed8d78c40199d22862.zip gdb-3d56ab850cf81361423699ed8d78c40199d22862.tar.gz gdb-3d56ab850cf81361423699ed8d78c40199d22862.tar.bz2 |
Fix memory leaks for IA-64 opcode idescs.
gas/
* config/tc-ia64.c (emit_one_bundle): Call ia64_free_opcode
before ia64_find_opcode.
(md_assemble): Likewise.
opcodes/
* ia64-dis.c (print_insn_ia64): Call ia64_free_opcode at end.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 4 | ||||
-rw-r--r-- | opcodes/ia64-dis.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 4d34aca..d4af2a2 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2000-08-02 Jim Wilson <wilson@cygnus.com> + + * ia64-dis.c (print_insn_ia64): Call ia64_free_opcode at end. + 2000-07-28 Ben Elliston <bje@redhat.com> * Makefile.am (CGEN, CGENDEPS, CGENDIR, CGENFLAGS): New. diff --git a/opcodes/ia64-dis.c b/opcodes/ia64-dis.c index 7a68597..d4ea62b 100644 --- a/opcodes/ia64-dis.c +++ b/opcodes/ia64-dis.c @@ -254,6 +254,7 @@ print_insn_ia64 (bfd_vma memaddr, struct disassemble_info *info) (*info->fprintf_func) (info->stream, ";;"); done: + ia64_free_opcode (idesc); if (slotnum == 2) retval += 16 - 3*slot_multiplier; return retval; |