Add missing if_free() in rue_detach().

This commit is contained in:
Ruslan Ermilov 2005-09-16 09:16:46 +00:00
parent dca2069084
commit 94a7d18b08

View File

@ -735,6 +735,7 @@ rue_detach(device_ptr_t dev)
untimeout(rue_tick, sc, sc->rue_stat_ch);
#if __FreeBSD_version >= 500000
ether_ifdetach(ifp);
if_free(ifp);
#else
ether_ifdetach(ifp, ETHER_BPF_SUPPORTED);
#endif