destroy lock _before_ free'ing the structure it resides in

This commit is contained in:
sam 2005-08-06 18:42:01 +00:00
parent 0303ff9d39
commit 2269fa4b40

View File

@ -417,9 +417,8 @@ void
if_free(struct ifnet *ifp)
{
if_free_type(ifp, ifp->if_type);
IF_ADDR_LOCK_DESTROY(ifp);
if_free_type(ifp, ifp->if_type);
}
void