From b07f123b60dc49b96577df549bd6346125668d71 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Sun, 29 May 2016 05:55:21 +0000 Subject: [PATCH] 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 6e86c4d92897..8cf7a6e0354d 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); */ }