[ruby-cvs:58888] nobu:r51737 (trunk): win32: use ALLOCV

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Sep 2 13:14:42 JST 2015


nobu	2015-09-02 13:14:42 +0900 (Wed, 02 Sep 2015)

  New Revision: 51737

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

  Log:
    win32: use ALLOCV
    
    * win32/file.c (rb_readlink): use ALLOCV to get rid potential
      memory leak by NoMemoryError in ALLOCV.
    
    * win32/win32.c (w32_readlink): allocate WCHAR path name and
      reparse buffer together.

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


More information about the ruby-cvs mailing list