mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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
2 changed files with 2 additions and 0 deletions
|
|
@ -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…
Reference in a new issue