[前][次][番号順一覧][スレッド一覧]

ruby-changes:39970

From: ko1 <ko1@a...>
Date: Tue, 6 Oct 2015 06:57:57 +0900 (JST)
Subject: [ruby-changes:39970] ko1:r52051 (trunk): * iseq.c (rb_iseq_free): free iseq::variable_body to avoid memory

ko1	2015-10-06 06:55:56 +0900 (Tue, 06 Oct 2015)

  New Revision: 52051

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52051

  Log:
    * iseq.c (rb_iseq_free): free iseq::variable_body to avoid memory
      leak.

  Modified files:
    trunk/ChangeLog
    trunk/iseq.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52050)
+++ ChangeLog	(revision 52051)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Oct  6 06:54:34 2015  Koichi Sasada  <ko1@a...>
+
+	* iseq.c (rb_iseq_free): free iseq::variable_body to avoid memory
+	  leak.
+
 Tue Oct  6 06:32:52 2015  Koichi Sasada  <ko1@a...>
 
 	* proc.c: enable optimization of Proc#call.
Index: iseq.c
===================================================================
--- iseq.c	(revision 52050)
+++ iseq.c	(revision 52051)
@@ -93,6 +93,7 @@ rb_iseq_free(const rb_iseq_t *iseq) https://github.com/ruby/ruby/blob/trunk/iseq.c#L93
 	}
 	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");

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]