svn commit: r260343 - stable/10/sys/dev/aha
Alexander Motin
mav at FreeBSD.org
Sun Jan 5 22:42:43 UTC 2014
Author: mav
Date: Sun Jan 5 22:42:42 2014
New Revision: 260343
URL: http://svnweb.freebsd.org/changeset/base/260343
Log:
MFC r256887:
Fix memory and references leak due to unfreed path.
Coverity CID: 1109817
Modified:
stable/10/sys/dev/aha/aha.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/dev/aha/aha.c
==============================================================================
--- stable/10/sys/dev/aha/aha.c Sun Jan 5 22:40:28 2014 (r260342)
+++ stable/10/sys/dev/aha/aha.c Sun Jan 5 22:42:42 2014 (r260343)
@@ -1168,8 +1168,10 @@ ahadone(struct aha_softc *aha, struct ah
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) {
More information about the svn-src-stable-10
mailing list