Vlan interfaces change their type after ether_ifattach() so we needs to
use if_free_type(ifp, IFT_ETHER) to delete them and stop leaking struct arpcoms. Reported by: thompsa MFC After: 3 days
This commit is contained in:
parent
d785dfefa4
commit
f3447eb493
@ -437,7 +437,7 @@ vlan_clone_destroy(struct if_clone *ifc, struct ifnet *ifp)
|
||||
VLAN_UNLOCK();
|
||||
|
||||
ether_ifdetach(ifp);
|
||||
if_free(ifp);
|
||||
if_free_type(ifp, IFT_ETHER);
|
||||
|
||||
free(ifv, M_VLAN);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user