Its never a good idea to double free the same

address.

MFC after:	1 week (after the other commits ahead of this gets MFC'd)
This commit is contained in:
Randall Stewart 2012-08-16 17:55:16 +00:00
parent 9ea9af5281
commit 184749821f

View File

@ -573,7 +573,7 @@ in_control(struct socket *so, u_long cmd, caddr_t data, struct ifnet *ifp,
}
TAILQ_REMOVE(&ifp->if_addrhead, &ia->ia_ifa, ifa_link);
IF_ADDR_WUNLOCK(ifp);
ifa_free(&ia->ia_ifa); /* if_addrhead */
/* ifa_free(&ia->ia_ifa); - Double free?? */ /* if_addrhead */
IN_IFADDR_WLOCK();
TAILQ_REMOVE(&V_in_ifaddrhead, ia, ia_link);