aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/rpcbind/util.c
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2016-05-29 04:02:02 +0000
committerEnji Cooper <ngie@FreeBSD.org>2016-05-29 04:02:02 +0000
commit4b528ceaf7cd7c864aaee5fe22572b48cc38f137 (patch)
treee27d54ff29471b531f81ca7a1f003f893a3152ed /usr.sbin/rpcbind/util.c
parent6713512842df345bda61e865a9cd2742b3dfd8a3 (diff)
downloadsrc-4b528ceaf7cd7c864aaee5fe22572b48cc38f137.tar.gz
src-4b528ceaf7cd7c864aaee5fe22572b48cc38f137.zip
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
Notes
Notes: svn path=/head/; revision=300934
Diffstat (limited to 'usr.sbin/rpcbind/util.c')
-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 e80c748bdc82..6e86c4d92897 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); */