Date: Sun, 29 May 2016 04:02:02 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r300934 - head/usr.sbin/rpcbind Message-ID: <201605290402.u4T422FC050937@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Sun May 29 04:02:02 2016 New Revision: 300934 URL: https://svnweb.freebsd.org/changeset/base/300934 Log: Plug leak with ifp by calling freeifaddrs after calling getifaddrs MFC after: 1 week Obtained from: NetBSD v1.18 Sponsored by: EMC / Isilon Storage Division Modified: head/usr.sbin/rpcbind/util.c Modified: head/usr.sbin/rpcbind/util.c ============================================================================== --- head/usr.sbin/rpcbind/util.c Sun May 29 03:44:37 2016 (r300933) +++ head/usr.sbin/rpcbind/util.c Sun May 29 04:02:02 2016 (r300934) @@ -393,6 +393,7 @@ network_init(void) if (debugging) perror("setsockopt v6 multicast"); } + freeifaddrs(ifp); #endif /* close(s); */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605290402.u4T422FC050937>