diff options
author | scottl <scottl@FreeBSD.org> | 2016-05-03 14:30:26 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2016-05-03 14:30:26 +0000 |
commit | 5f9464965489d9535acea464c703064ac1788de0 (patch) | |
tree | 00cdbc66b95b907bc11ce8c805e03a2696184dd4 /sys | |
parent | 748b87203d7219fd9fe2f73894359a6301ce5be1 (diff) | |
download | FreeBSD-src-5f9464965489d9535acea464c703064ac1788de0.zip FreeBSD-src-5f9464965489d9535acea464c703064ac1788de0.tar.gz |
Fix a memory leak in the devctl notify code.
Submitted by: markj
MFC after: asap
Diffstat (limited to 'sys')
-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 b1686bc..8f780fd 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); |