summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-05 21:55:56 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-05 21:55:56 +0000
commita22d6f55e8d4e0dadea28c47dffd18d7ba1c0f4e (patch)
tree647a4899bee78b373902271a56ff46b3a5942295 /iseq.c
parent0018a71184edbc4b46bbfd2b3a56e4a5a585d4f3 (diff)
* 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
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/iseq.c b/iseq.c
index 0fd95f0..3760589 100644
--- a/iseq.c
+++ b/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");