ruby-changes:25070
From: ko1 <ko1@a...>
Date: Tue, 9 Oct 2012 14:37:55 +0900 (JST)
Subject: [ruby-changes:25070] ko1:r37122 (trunk): * iseq.c (iseq_free): fix memory leak.
ko1 2012-10-09 14:37:43 +0900 (Tue, 09 Oct 2012) New Revision: 37122 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37122 Log: * iseq.c (iseq_free): fix memory leak. rb_iseq_t::callinfo_entries should be freed. Modified files: trunk/ChangeLog trunk/iseq.c Index: ChangeLog =================================================================== --- ChangeLog (revision 37121) +++ ChangeLog (revision 37122) @@ -1,3 +1,8 @@ +Tue Oct 9 14:36:11 2012 Koichi Sasada <ko1@a...> + + * iseq.c (iseq_free): fix memory leak. + rb_iseq_t::callinfo_entries should be freed. + Tue Oct 9 14:28:18 2012 Koichi Sasada <ko1@a...> * vm_core.h (rb_call_info_t): add new type `rb_call_inf_t'. Index: iseq.c =================================================================== --- iseq.c (revision 37121) +++ iseq.c (revision 37122) @@ -84,6 +84,7 @@ RUBY_FREE_UNLESS_NULL(iseq->line_info_table); RUBY_FREE_UNLESS_NULL(iseq->local_table); RUBY_FREE_UNLESS_NULL(iseq->ic_entries); + RUBY_FREE_UNLESS_NULL(iseq->callinfo_entries); RUBY_FREE_UNLESS_NULL(iseq->catch_table); RUBY_FREE_UNLESS_NULL(iseq->arg_opt_table); RUBY_FREE_UNLESS_NULL(iseq->arg_keyword_table); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/