зеркало из https://github.com/github/ruby.git
* iseq.c (rb_iseq_free): free iseq::variable_body to avoid memory
leak. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
0018a71184
Коммит
a22d6f55e8
|
@ -1,3 +1,8 @@
|
|||
Tue Oct 6 06:54:34 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* iseq.c (rb_iseq_free): free iseq::variable_body to avoid memory
|
||||
leak.
|
||||
|
||||
Tue Oct 6 06:32:52 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* proc.c: enable optimization of Proc#call.
|
||||
|
|
1
iseq.c
1
iseq.c
|
@ -93,6 +93,7 @@ rb_iseq_free(const rb_iseq_t *iseq)
|
|||
}
|
||||
compile_data_free(iseq->compile_data);
|
||||
ruby_xfree(iseq->variable_body->iseq);
|
||||
ruby_xfree(iseq->variable_body);
|
||||
ruby_xfree(iseq->body);
|
||||
}
|
||||
RUBY_FREE_LEAVE("iseq");
|
||||
|
|
Загрузка…
Ссылка в новой задаче