[ruby-cvs:50254] nobu:r43112 (trunk): io.c: keep fptr read-closed

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Oct 2 14:19:01 JST 2013


nobu	2013-10-02 14:19:00 +0900 (Wed, 02 Oct 2013)

  New Revision: 43112

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

  Log:
    io.c: keep fptr read-closed
    
    * io.c (rb_io_close_read): keep fptr in write_io to be discarded, to
      fix freed pointer access when it is in use by other threads, and get
      rid of potential memory/fd leak.

  Modified files:
    trunk/ChangeLog
    trunk/io.c


More information about the ruby-cvs mailing list