[ruby-cvs:50263] mame:r43121 (trunk): * ext/socket/ifaddr.c (rsock_getifaddrs): fix possible memory leak.

mame at ruby-lang.org mame at ruby-lang.org
Wed Oct 2 21:41:28 JST 2013

mame	2013-10-02 21:41:28 +0900 (Wed, 02 Oct 2013)

  New Revision: 43121


    * ext/socket/ifaddr.c (rsock_getifaddrs): fix possible memory leak.
      When a system had no interface, this function used xmalloc for root
      but did not return any reference to it.  This patch fixes it by
      immediately returning an empty array if no interface is found.
      Coverity Scan found this bug.

  Modified files:

More information about the ruby-cvs mailing list