diff options
author | Scott Long <scottl@FreeBSD.org> | 2016-05-03 14:30:26 +0000 |
---|---|---|
committer | Scott Long <scottl@FreeBSD.org> | 2016-05-03 14:30:26 +0000 |
commit | de482e7bbba52d454635c55d8f179accdd011ea2 (patch) | |
tree | 00cdbc66b95b907bc11ce8c805e03a2696184dd4 /sys/cam | |
parent | 612226d7565e40e4c48a28fc7dbdce1a437777f9 (diff) | |
download | src-de482e7bbba52d454635c55d8f179accdd011ea2.tar.gz src-de482e7bbba52d454635c55d8f179accdd011ea2.zip |
Fix a memory leak in the devctl notify code.
Submitted by: markj
MFC after: asap
Notes
Notes:
svn path=/head/; revision=298977
Diffstat (limited to 'sys/cam')
-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 b1686bc02820..8f780fd40162 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); |