summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2013-10-22 13:52:20 +0000
committermav <mav@FreeBSD.org>2013-10-22 13:52:20 +0000
commitb35f8f15bc626be0667a34c32945900e28003d2b (patch)
tree14f1268800fcab35bbbd3869c8eb7d85f712e407
parent1c55b38aeb696ce04e221122ef481710d7baef65 (diff)
downloadFreeBSD-src-b35f8f15bc626be0667a34c32945900e28003d2b.zip
FreeBSD-src-b35f8f15bc626be0667a34c32945900e28003d2b.tar.gz
Fix memory and references leak due to unfreed path.
Coverity CID: 1109815
-rw-r--r--sys/dev/buslogic/bt.c4
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) {
OpenPOWER on IntegriCloud