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 Davis 2005-08-15 20:27:34 +00:00
parent d785dfefa4
commit f3447eb493

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