svn commit: r300934 - head/usr.sbin/rpcbind
Garrett Cooper
ngie at FreeBSD.org
Sun May 29 04:02:03 UTC 2016
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); */
More information about the svn-src-all
mailing list