1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-15 15:06:42 +00:00

destroy lock _before_ free'ing the structure it resides in

This commit is contained in:
Sam Leffler 2005-08-06 18:42:01 +00:00
parent 4204e2fb6b
commit 456d182d5b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148799

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