summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpcbind/util.c
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2016-05-29 04:02:02 +0000
committerngie <ngie@FreeBSD.org>2016-05-29 04:02:02 +0000
commitbee3d2d30838ca9ab40fb9b87f85b847662873fe (patch)
treee27d54ff29471b531f81ca7a1f003f893a3152ed /usr.sbin/rpcbind/util.c
parentb7cdaf3621f0a8deaf52e7cd2728b45e97a9bde2 (diff)
downloadFreeBSD-src-bee3d2d30838ca9ab40fb9b87f85b847662873fe.zip
FreeBSD-src-bee3d2d30838ca9ab40fb9b87f85b847662873fe.tar.gz
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
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 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); */
OpenPOWER on IntegriCloud