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): resolve memory leak.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2014-11-03 05:43:31 +00:00
parent 30f69beeba
commit 86e9a1c005
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Mon Nov 3 14:42:37 2014 Koichi Sasada <ko1@atdot.net>
* iseq.c (iseq_free): resolve memory leak.
Mon Nov 3 13:49:18 2014 Koichi Sasada <ko1@atdot.net>
* iseq.c (iseq_memsize): catch up recent changes.

5
iseq.c
View file

@ -88,7 +88,10 @@ iseq_free(void *ptr)
RUBY_FREE_UNLESS_NULL(iseq->callinfo_entries);
RUBY_FREE_UNLESS_NULL(iseq->catch_table);
RUBY_FREE_UNLESS_NULL(iseq->param.opt_table);
RUBY_FREE_UNLESS_NULL(iseq->param.keyword);
if (iseq->param.keyword != NULL) {
RUBY_FREE_UNLESS_NULL(iseq->param.keyword->default_values);
RUBY_FREE_UNLESS_NULL(iseq->param.keyword);
}
compile_data_free(iseq->compile_data);
RUBY_FREE_UNLESS_NULL(iseq->iseq);
}