aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/aha
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2013-10-22 12:42:49 +0000
committerAlexander Motin <mav@FreeBSD.org>2013-10-22 12:42:49 +0000
commit7ef4b2a5de3e5038651404ab5f9530020daaaab1 (patch)
tree37bcaa747f294d83b683949d41ed2ace33a869f2 /sys/dev/aha
parentfdee5abcee4bb72708550767af711c158f0bdc7d (diff)
downloadsrc-7ef4b2a5de3e5038651404ab5f9530020daaaab1.tar.gz
src-7ef4b2a5de3e5038651404ab5f9530020daaaab1.zip
Fix memory and references leak due to unfreed path.
Coverity CID: 1109817
Notes
Notes: svn path=/head/; revision=256887
Diffstat (limited to 'sys/dev/aha')
-rw-r--r--sys/dev/aha/aha.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/aha/aha.c b/sys/dev/aha/aha.c
index ab2a59a03236..ee9cc72b7f10 100644
--- a/sys/dev/aha/aha.c
+++ b/sys/dev/aha/aha.c
@@ -1168,8 +1168,10 @@ ahadone(struct aha_softc *aha, struct aha_ccb *accb, aha_mbi_comp_code_t comp_co
cam_sim_path(aha->sim), accb->hccb.target,
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(&aha->pending_ccbs);
while (ccb_h != NULL) {