diff options
author | mav <mav@FreeBSD.org> | 2014-01-05 22:42:42 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2014-01-05 22:42:42 +0000 |
commit | 97d7cc4f543727f7603ecd1ae1dbc23e0b8998a6 (patch) | |
tree | 2d4d3b36f1f0fd7d694cdcdb147252d6a9695916 | |
parent | a5ea679e9359acd69373a4f1a1ba85faf82891a9 (diff) | |
download | FreeBSD-src-97d7cc4f543727f7603ecd1ae1dbc23e0b8998a6.zip FreeBSD-src-97d7cc4f543727f7603ecd1ae1dbc23e0b8998a6.tar.gz |
MFC r256887:
Fix memory and references leak due to unfreed path.
Coverity CID: 1109817
-rw-r--r-- | sys/dev/aha/aha.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/aha/aha.c b/sys/dev/aha/aha.c index ab2a59a..ee9cc72 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) { |