mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Free the portinfo object on unload.
This commit is contained in:
parent
16f89cb420
commit
a54876ea20
1 changed files with 4 additions and 0 deletions
|
|
@ -1199,6 +1199,10 @@ mpt_cam_detach(struct mpt_softc *mpt)
|
|||
mpt_free_request(mpt, mpt->tmf_req);
|
||||
mpt->tmf_req = NULL;
|
||||
}
|
||||
if (mpt->sas_portinfo != NULL) {
|
||||
free(mpt->sas_portinfo, M_DEVBUF);
|
||||
mpt->sas_portinfo = NULL;
|
||||
}
|
||||
MPT_UNLOCK(mpt);
|
||||
|
||||
if (mpt->sim != NULL) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue