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
4edc625526
commit
aa637c9682
@ -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