mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
0018a71184
commit
a22d6f55e8
2 changed files with 6 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue