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:
brooks 2005-08-15 20:27:34 +00:00
parent 4edc625526
commit aa637c9682

View File

@ -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);