Date: Tue, 22 Oct 2013 13:52:20 +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: r256893 - head/sys/dev/buslogic Message-ID: <201310221352.r9MDqKKb011258@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310221352.r9MDqKKb011258>