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

ruby-changes:7435

From: nobu <ko1@a...>
Date: Sat, 30 Aug 2008 22:45:30 +0900 (JST)
Subject: [ruby-changes:7435] Ruby:r18954 (mvm): * thread.c (rb_queue_shift): fix memory leak.

nobu	2008-08-30 22:45:09 +0900 (Sat, 30 Aug 2008)

  New Revision: 18954

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

  Log:
    * thread.c (rb_queue_shift): fix memory leak.

  Modified files:
    branches/mvm/ChangeLog
    branches/mvm/thread.c

Index: mvm/ChangeLog
===================================================================
--- mvm/ChangeLog	(revision 18953)
+++ mvm/ChangeLog	(revision 18954)
@@ -1,3 +1,7 @@
+Sat Aug 30 22:45:00 2008  Nobuyoshi Nakada  <nobu@r...>
+
+	* thread.c (rb_queue_shift): fix memory leak.
+
 Sat Aug 30 20:06:24 2008  Nobuyoshi Nakada  <nobu@r...>
 
 	* vm_core.h (struct rb_thread_struct): added signal and message
Index: mvm/thread.c
===================================================================
--- mvm/thread.c	(revision 18953)
+++ mvm/thread.c	(revision 18954)
@@ -1011,6 +1011,7 @@
     ruby_native_thread_unlock(&que->lock);
     if (!e) return 0;
     *value = e->value;
+    free(e);
     return Qtrue;
 }
 

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

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