diff options
author | mav <mav@FreeBSD.org> | 2014-01-05 22:43:40 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2014-01-05 22:43:40 +0000 |
commit | 2ef8e6e39b77829132dba387adb1c4e19a04035b (patch) | |
tree | af77c265e9ba576ebba9454f19ff559c2528b44d /sys/dev/buslogic | |
parent | 97d7cc4f543727f7603ecd1ae1dbc23e0b8998a6 (diff) | |
download | FreeBSD-src-2ef8e6e39b77829132dba387adb1c4e19a04035b.zip FreeBSD-src-2ef8e6e39b77829132dba387adb1c4e19a04035b.tar.gz |
MFC r256893:
Fix memory and references leak due to unfreed path.
Coverity CID: 1109815
Diffstat (limited to 'sys/dev/buslogic')
-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 a2c9f4f..b24442e 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) { |