Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Oct 2013 12:42:49 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r256887 - head/sys/dev/aha
Message-ID:  <201310221242.r9MCgnQr073009@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Tue Oct 22 12:42:49 2013
New Revision: 256887
URL: http://svnweb.freebsd.org/changeset/base/256887

Log:
  Fix memory and references leak due to unfreed path.
  
  Coverity CID:	1109817

Modified:
  head/sys/dev/aha/aha.c

Modified: head/sys/dev/aha/aha.c
==============================================================================
--- head/sys/dev/aha/aha.c	Tue Oct 22 11:56:46 2013	(r256886)
+++ head/sys/dev/aha/aha.c	Tue Oct 22 12:42:49 2013	(r256887)
@@ -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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310221242.r9MCgnQr073009>