summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-09-16 10:09:23 +0000
committerru <ru@FreeBSD.org>2005-09-16 10:09:23 +0000
commit02dbbd7982679f0c66e9ffa29caf799b5c1a3bde (patch)
treea0c4fdcdcc5d1d56ca853fdfed07522b52aa6b71 /sys
parent985e35fdbaafacb128246b9c324b47382c1c525c (diff)
downloadFreeBSD-src-02dbbd7982679f0c66e9ffa29caf799b5c1a3bde.zip
FreeBSD-src-02dbbd7982679f0c66e9ffa29caf799b5c1a3bde.tar.gz
Fix "struct ifnet" leak on detach.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ath/if_ath.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index b96413f..db36f00 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -628,6 +628,7 @@ ath_detach(struct ath_softc *sc)
ath_desc_free(sc);
ath_tx_cleanup(sc);
ath_hal_detach(sc->sc_ah);
+ if_free(ifp);
return 0;
}
OpenPOWER on IntegriCloud