Date: Sun, 5 Jan 2014 22:42:43 +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: r260343 - stable/10/sys/dev/aha Message-ID: <201401052242.s05MghKa014589@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Sun Jan 5 22:42:42 2014 New Revision: 260343 URL: http://svnweb.freebsd.org/changeset/base/260343 Log: MFC r256887: Fix memory and references leak due to unfreed path. Coverity CID: 1109817 Modified: stable/10/sys/dev/aha/aha.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/dev/aha/aha.c ============================================================================== --- stable/10/sys/dev/aha/aha.c Sun Jan 5 22:40:28 2014 (r260342) +++ stable/10/sys/dev/aha/aha.c Sun Jan 5 22:42:42 2014 (r260343) @@ -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?201401052242.s05MghKa014589>