summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-10-07 05:29:13 +0000
committerimp <imp@FreeBSD.org>2002-10-07 05:29:13 +0000
commit2afad356a8e90712b940bc83320bc879c437e76b (patch)
treecd5b709b66c187f92bf540deb8e1daa88b30ed5a /sys/pci
parent3c13760e8ac6448cd3a0e8467b5cab54ab1b3cc2 (diff)
downloadFreeBSD-src-2afad356a8e90712b940bc83320bc879c437e76b.zip
FreeBSD-src-2afad356a8e90712b940bc83320bc879c437e76b.tar.gz
Ooops. Need to free dc_srom on detach to not leak memory.
Pointy Hat to: The Mad Redhead of Niwot
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/if_dc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/pci/if_dc.c b/sys/pci/if_dc.c
index 5219671..1f2923b 100644
--- a/sys/pci/if_dc.c
+++ b/sys/pci/if_dc.c
@@ -2338,6 +2338,7 @@ dc_detach(dev)
free(sc->dc_mi, M_DEVBUF);
sc->dc_mi = m;
}
+ free(sc->dc_srom, M_DEVBUF);
DC_UNLOCK(sc);
mtx_destroy(&sc->dc_mtx);
OpenPOWER on IntegriCloud