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
This commit is contained in:
Enji Cooper 2016-05-29 04:02:02 +00:00
parent 6713512842
commit 4b528ceaf7

View File

@ -393,6 +393,7 @@ network_init(void)
if (debugging)
perror("setsockopt v6 multicast");
}
freeifaddrs(ifp);
#endif
/* close(s); */