diff options
author | Alexander Motin <mav@FreeBSD.org> | 2013-10-22 13:52:20 +0000 |
---|---|---|
committer | Alexander Motin <mav@FreeBSD.org> | 2013-10-22 13:52:20 +0000 |
commit | c3109011425a75b8478c08e8a8289f38cb2cbc51 (patch) | |
tree | 14f1268800fcab35bbbd3869c8eb7d85f712e407 /sys | |
parent | 70c3432663b88edbada6ab2f82714d196664d531 (diff) | |
download | src-c3109011425a75b8478c08e8a8289f38cb2cbc51.tar.gz src-c3109011425a75b8478c08e8a8289f38cb2cbc51.zip |
Fix memory and references leak due to unfreed path.
Coverity CID: 1109815
Notes
Notes:
svn path=/head/; revision=256893
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/buslogic/bt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/buslogic/bt.c b/sys/dev/buslogic/bt.c index a2c9f4ffe97d..b24442e92c0f 100644 --- a/sys/dev/buslogic/bt.c +++ b/sys/dev/buslogic/bt.c @@ -1586,8 +1586,10 @@ btdone(struct bt_softc *bt, struct bt_ccb *bccb, bt_mbi_comp_code_t comp_code) bccb->hccb.target_id, CAM_LUN_WILDCARD); - if (error == CAM_REQ_CMP) + if (error == CAM_REQ_CMP) { xpt_async(AC_SENT_BDR, path, NULL); + xpt_free_path(path); + } ccb_h = LIST_FIRST(&bt->pending_ccbs); while (ccb_h != NULL) { |