svn commit: r260344 - stable/10/sys/dev/buslogic

Alexander Motin mav at FreeBSD.org
Sun Jan 5 22:43:40 UTC 2014


Author: mav
Date: Sun Jan  5 22:43:40 2014
New Revision: 260344
URL: http://svnweb.freebsd.org/changeset/base/260344

Log:
  MFC r256893:
  Fix memory and references leak due to unfreed path.
  
  Coverity CID:   1109815

Modified:
  stable/10/sys/dev/buslogic/bt.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/buslogic/bt.c
==============================================================================
--- stable/10/sys/dev/buslogic/bt.c	Sun Jan  5 22:42:42 2014	(r260343)
+++ stable/10/sys/dev/buslogic/bt.c	Sun Jan  5 22:43:40 2014	(r260344)
@@ -1586,8 +1586,10 @@ btdone(struct bt_softc *bt, struct bt_cc
 					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) {


More information about the svn-src-stable-10 mailing list