[ruby-cvs:57660] nobu:r50512 (trunk): ifaddr.c: wrapper object before alloc

nobu at ruby-lang.org nobu at ruby-lang.org
Sat May 16 21:57:25 JST 2015


nobu	2015-05-16 21:57:17 +0900 (Sat, 16 May 2015)

  New Revision: 50512

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

  Log:
    ifaddr.c: wrapper object before alloc
    
    * ext/socket/ifaddr.c (rsock_getifaddrs): make wrapper object
      before result structs allocation and manage refcount for each
      elements to get rid of potential memory leak.

  Modified files:
    trunk/ext/socket/ifaddr.c


More information about the ruby-cvs mailing list