summaryrefslogtreecommitdiffstats
path: root/sys/dev/ciss
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-01-18 16:55:01 +0000
committerru <ru@FreeBSD.org>2004-01-18 16:55:01 +0000
commita69314d2728f44550610ff38d9567c94c958cc0f (patch)
treeec075457bdd0fbc59ad81cdfa534a9817dddc13c /sys/dev/ciss
parent9d9c0df372af431e828fe7e54d25e82910dd9743 (diff)
downloadFreeBSD-src-a69314d2728f44550610ff38d9567c94c958cc0f.zip
FreeBSD-src-a69314d2728f44550610ff38d9567c94c958cc0f.tar.gz
Fixed a memory leak.
Reported by: Stanford Metacompilation research group
Diffstat (limited to 'sys/dev/ciss')
-rw-r--r--sys/dev/ciss/ciss.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c
index 7c925d0..e3deb35 100644
--- a/sys/dev/ciss/ciss.c
+++ b/sys/dev/ciss/ciss.c
@@ -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;
}
OpenPOWER on IntegriCloud