Fixed a memory leak.

Reported by:	Stanford Metacompilation research group
This commit is contained in:
Ruslan Ermilov 2004-01-18 16:55:01 +00:00
parent 61016883ad
commit 4c7ca6e54c

View File

@ -2167,6 +2167,7 @@ ciss_cam_rescan_target(struct ciss_softc *sc, int target)
if (xpt_create_path(&sc->ciss_cam_path, xpt_periph, cam_sim_path(sc->ciss_cam_sim), target, 0)
!= CAM_REQ_CMP) {
ciss_printf(sc, "rescan failed (can't create path)\n");
free(ccb, M_TEMP);
return;
}