diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 7be7a78dc7b1..87b3a6ca27fb 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -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);