summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2016-05-29 05:55:21 +0000
committerngie <ngie@FreeBSD.org>2016-05-29 05:55:21 +0000
commit3a9c6c760d23e0c8424cf643d93b157fc1b97e39 (patch)
tree2034aedaea66dde84c985d81e7bffb4bff4635b2
parent00dc1773136ab6a81e6b68990851adaf3745e712 (diff)
downloadFreeBSD-src-3a9c6c760d23e0c8424cf643d93b157fc1b97e39.zip
FreeBSD-src-3a9c6c760d23e0c8424cf643d93b157fc1b97e39.tar.gz
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
-rw-r--r--usr.sbin/rpcbind/util.c1
1 files changed, 1 insertions, 0 deletions
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); */
}
OpenPOWER on IntegriCloud