1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* iseq.c (iseq_free): fix memory leak.

rb_iseq_t::callinfo_entries should be freed.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2012-10-09 05:37:43 +00:00
parent 7ea3edc409
commit 62ad069c3a
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Tue Oct 9 14:36:11 2012 Koichi Sasada <ko1@atdot.net>
* 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@atdot.net>
* vm_core.h (rb_call_info_t): add new type `rb_call_inf_t'.

1
iseq.c
View file

@ -84,6 +84,7 @@ iseq_free(void *ptr)
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);