Fix memory and references leak due to unfreed path.
Coverity CID: 1109817
This commit is contained in:
parent
fdee5abcee
commit
7ef4b2a5de
@ -1168,8 +1168,10 @@ ahadone(struct aha_softc *aha, struct aha_ccb *accb, aha_mbi_comp_code_t comp_co
|
||||
cam_sim_path(aha->sim), accb->hccb.target,
|
||||
CAM_LUN_WILDCARD);
|
||||
|
||||
if (error == CAM_REQ_CMP)
|
||||
if (error == CAM_REQ_CMP) {
|
||||
xpt_async(AC_SENT_BDR, path, NULL);
|
||||
xpt_free_path(path);
|
||||
}
|
||||
|
||||
ccb_h = LIST_FIRST(&aha->pending_ccbs);
|
||||
while (ccb_h != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user