Skip to content

Commit

Permalink
HBSD MFC: Fix a memory leak in the devctl notify code.
Browse files Browse the repository at this point in the history
Submitted by:	markj
MFC after:	asap

(cherry picked from commit 5f94649)
Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
  • Loading branch information
scottl authored and opntr committed May 3, 2016
1 parent 5b7cb72 commit b95baf9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/cam/cam_periph.c
Expand Up @@ -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);
Expand Down

0 comments on commit b95baf9

Please sign in to comment.