svn commit: r256893 - head/sys/dev/buslogic

Alexander Motin mav at FreeBSD.org
Tue Oct 22 13:52:20 UTC 2013


Author: mav
Date: Tue Oct 22 13:52:20 2013
New Revision: 256893
URL: http://svnweb.freebsd.org/changeset/base/256893

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

Modified:
  head/sys/dev/buslogic/bt.c

Modified: head/sys/dev/buslogic/bt.c
==============================================================================
--- head/sys/dev/buslogic/bt.c	Tue Oct 22 13:50:54 2013	(r256892)
+++ head/sys/dev/buslogic/bt.c	Tue Oct 22 13:52:20 2013	(r256893)
@@ -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-all mailing list