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:
ngie 2016-05-29 04:02:02 +00:00
parent b7cdaf3621
commit bee3d2d308

View File

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