diff options
author | ngie <ngie@FreeBSD.org> | 2016-05-29 04:02:02 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-05-29 04:02:02 +0000 |
commit | bee3d2d30838ca9ab40fb9b87f85b847662873fe (patch) | |
tree | e27d54ff29471b531f81ca7a1f003f893a3152ed /usr.sbin | |
parent | b7cdaf3621f0a8deaf52e7cd2728b45e97a9bde2 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | usr.sbin/rpcbind/util.c | 1 |
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); */ |