diff --git a/sys/net/if_etherip.c b/sys/net/if_etherip.c index c2cf0d12f030..619031ae5aed 100644 --- a/sys/net/if_etherip.c +++ b/sys/net/if_etherip.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_etherip.c,v 1.5 2007/03/04 06:03:15 christos Exp $ */ +/* $NetBSD: if_etherip.c,v 1.6 2007/04/23 05:05:03 dyoung Exp $ */ /* * Copyright (c) 2006, Hans Rosenfeld @@ -321,6 +321,7 @@ etherip_detach(struct device* self, int flags) etherip_delete_tunnel(ifp); ether_ifdetach(ifp); if_detach(ifp); + rtcache_free(&sc->sc_ro); ifmedia_delete_instance(&sc->sc_im, IFM_INST_ANY); return 0;