From bee3d2d30838ca9ab40fb9b87f85b847662873fe Mon Sep 17 00:00:00 2001 From: ngie Date: Sun, 29 May 2016 04:02:02 +0000 Subject: 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 --- usr.sbin/rpcbind/util.c | 1 + 1 file changed, 1 insertion(+) (limited to 'usr.sbin') diff --git a/usr.sbin/rpcbind/util.c b/usr.sbin/rpcbind/util.c index e80c748..6e86c4d 100644 --- a/usr.sbin/rpcbind/util.c +++ b/usr.sbin/rpcbind/util.c @@ -393,6 +393,7 @@ network_init(void) if (debugging) perror("setsockopt v6 multicast"); } + freeifaddrs(ifp); #endif /* close(s); */ -- cgit v1.1