From 3a9c6c760d23e0c8424cf643d93b157fc1b97e39 Mon Sep 17 00:00:00 2001 From: ngie Date: Sun, 29 May 2016 05:55:21 +0000 Subject: Don't leak res in network_init(..) Call freeaddrinfo on it after it's been used MFC after: 1 week Reported by: Coverity CID: 1225050 Sponsored by: EMC / Isilon Storage Division --- usr.sbin/rpcbind/util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/rpcbind/util.c b/usr.sbin/rpcbind/util.c index 6e86c4d..8cf7a6e 100644 --- a/usr.sbin/rpcbind/util.c +++ b/usr.sbin/rpcbind/util.c @@ -396,6 +396,7 @@ network_init(void) freeifaddrs(ifp); #endif + freeaddrinfo(res); /* close(s); */ } -- cgit v1.1