Ooops. Need to free dc_srom on detach to not leak memory.

Pointy Hat to: The Mad Redhead of Niwot
This commit is contained in:
Warner Losh 2002-10-07 05:29:13 +00:00
parent 3097aa70be
commit 7efff076f4
2 changed files with 2 additions and 0 deletions

View File

@ -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);

View File

@ -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);