Date: Sun, 5 Jan 2014 22:43:40 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r260344 - stable/10/sys/dev/buslogic Message-ID: <201401052243.s05MheBB014738@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401052243.s05MheBB014738>