[ruby-cvs:57658] nobu:r50510 (trunk): wrapper object before alloc

nobu at ruby-lang.org nobu at ruby-lang.org
Sat May 16 21:56:31 JST 2015


nobu	2015-05-16 21:56:29 +0900 (Sat, 16 May 2015)

  New Revision: 50510

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

  Log:
    wrapper object before alloc
    
    * error.c (rb_name_err_mesg_new): new wrapper object before
      allocate data area and get rid of potential memory leak.
      GC guards are no longer needed.
    
    * file.c (stat_new_0): ditto.

  Modified files:
    trunk/error.c
    trunk/file.c


More information about the ruby-cvs mailing list