diff options
author | ru <ru@FreeBSD.org> | 2004-01-18 12:49:36 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2004-01-18 12:49:36 +0000 |
commit | 5aee609e6077bfbaae6a2767c1b716b87b55d967 (patch) | |
tree | 166dcb3497f040d2c63ef0324c2bdfab344091cb /sys/dev/mly | |
parent | 69d79b6f353a66f1f50da88fcfc01f2248d8583b (diff) | |
download | FreeBSD-src-5aee609e6077bfbaae6a2767c1b716b87b55d967.zip FreeBSD-src-5aee609e6077bfbaae6a2767c1b716b87b55d967.tar.gz |
Fixed a memory leak.
Reported by: Stanford Metacompilation research group
Diffstat (limited to 'sys/dev/mly')
-rw-r--r-- | sys/dev/mly/mly.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/mly/mly.c b/sys/dev/mly/mly.c index 3d49034..48e8f25 100644 --- a/sys/dev/mly/mly.c +++ b/sys/dev/mly/mly.c @@ -2031,6 +2031,7 @@ mly_cam_rescan_btl(struct mly_softc *sc, int bus, int target) if (xpt_create_path(&sc->mly_cam_path, xpt_periph, cam_sim_path(sc->mly_cam_sim[bus]), target, 0) != CAM_REQ_CMP) { mly_printf(sc, "rescan failed (can't create path)\n"); + free(ccb, M_TEMP); return; } xpt_setup_ccb(&ccb->ccb_h, sc->mly_cam_path, 5/*priority (low)*/); |