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

ruby-changes:21984

From: okkez <ko1@a...>
Date: Wed, 14 Dec 2011 01:33:37 +0900 (JST)
Subject: [ruby-changes:21984] okkez:r34033 (trunk): * thread_pthread.c (rb_thread_create_timer_thread): fix memory

okkez	2011-12-14 01:33:15 +0900 (Wed, 14 Dec 2011)

  New Revision: 34033

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

  Log:
    * thread_pthread.c (rb_thread_create_timer_thread): fix memory
      leak. [ruby-dev:44904] [Bug #5688]

  Modified files:
    trunk/ChangeLog
    trunk/thread_pthread.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 34032)
+++ ChangeLog	(revision 34033)
@@ -1,3 +1,8 @@
+Wed Dec 14 01:24:55 2011  okkez  <okkez000@g...>
+
+	* thread_pthread.c (rb_thread_create_timer_thread): fix memory
+	  leak. [ruby-dev:44904] [Bug #5688]
+
 Wed Dec 14 00:01:15 2011  Nobuyoshi Nakada  <nobu@r...>
 
 	* parse.y (primary): point method name line.  [ruby-core:40936]
Index: thread_pthread.c
===================================================================
--- thread_pthread.c	(revision 34032)
+++ thread_pthread.c	(revision 34033)
@@ -1243,6 +1243,7 @@
 	    fprintf(stderr, "[FATAL] Failed to create timer thread (errno: %d)\n", err);
 	    exit(EXIT_FAILURE);
 	}
+	pthread_attr_destroy(&attr);
     }
 }
 

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

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