* compile.c (iseq_set_sequence): fix memory leak.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ba1e27f3ca
commit
01cdeb8da7
@ -1,3 +1,7 @@
|
|||||||
|
Thu Oct 16 23:37:11 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
|
* compile.c (iseq_set_sequence): fix memory leak.
|
||||||
|
|
||||||
Thu Oct 16 23:27:27 2008 Tanaka Akira <akr@fsij.org>
|
Thu Oct 16 23:27:27 2008 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* lib/test/unit.rb (assert_equal): avoid incompatible character
|
* lib/test/unit.rb (assert_equal): avoid incompatible character
|
||||||
|
@ -1309,6 +1309,8 @@ iseq_set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
|
|||||||
rb_compile_error(RSTRING_PTR(iseq->filename), iobj->line_no,
|
rb_compile_error(RSTRING_PTR(iseq->filename), iobj->line_no,
|
||||||
"operand size miss! (%d for %d)",
|
"operand size miss! (%d for %d)",
|
||||||
iobj->operand_size, len - 1);
|
iobj->operand_size, len - 1);
|
||||||
|
xfree(generated_iseq);
|
||||||
|
xfree(insn_info_table);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1403,6 +1405,8 @@ iseq_set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
|
|||||||
default:
|
default:
|
||||||
rb_compile_error(RSTRING_PTR(iseq->filename), iobj->line_no,
|
rb_compile_error(RSTRING_PTR(iseq->filename), iobj->line_no,
|
||||||
"unknown operand type: %c", type);
|
"unknown operand type: %c", type);
|
||||||
|
xfree(generated_iseq);
|
||||||
|
xfree(insn_info_table);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user