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:
parent
3097aa70be
commit
7efff076f4
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user