diff options
author | scottl <scottl@FreeBSD.org> | 2016-05-12 12:03:27 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2016-05-12 12:03:27 +0000 |
commit | 09c798b3d250d4d8c02f7faec83854bf035b070c (patch) | |
tree | bed19c2abba2239ff0b29e6f49c4681d9aee508d | |
parent | 324f9d9ba853523b268d1da2ff685be104a0b898 (diff) | |
download | FreeBSD-src-09c798b3d250d4d8c02f7faec83854bf035b070c.zip FreeBSD-src-09c798b3d250d4d8c02f7faec83854bf035b070c.tar.gz |
MFC r298977: Fix a memory leak introduced with the devctl intergration of
cam_periph
-rw-r--r-- | sys/cam/cam_periph.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c index d8940a0..21426c8 100644 --- a/sys/cam/cam_periph.c +++ b/sys/cam/cam_periph.c @@ -1876,6 +1876,7 @@ cam_periph_devctl_notify(union ccb *ccb) if (cgd->ccb_h.status == CAM_REQ_CMP) sbuf_bcat(&sb, cgd->serial_num, cgd->serial_num_len); + xpt_free_ccb((union ccb *)cgd); } sbuf_printf(&sb, "\" "); sbuf_printf(&sb, "cam_status=\"0x%x\" ", ccb->ccb_h.status); |