Free the portinfo object on unload.

This commit is contained in:
Scott Long 2007-06-04 04:35:04 +00:00
parent 16f89cb420
commit a54876ea20

View file

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