Date: Tue, 21 Jan 2014 00:25:51 +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-9@freebsd.org Subject: svn commit: r260963 - stable/9/sys/cam Message-ID: <201401210025.s0L0PpCE067586@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Tue Jan 21 00:25:50 2014 New Revision: 260963 URL: http://svnweb.freebsd.org/changeset/base/260963 Log: MFC r256895: Fix memory and references leak due to unfreed path. Modified: stable/9/sys/cam/cam_periph.c Directory Properties: stable/9/ (props changed) stable/9/sys/ (props changed) Modified: stable/9/sys/cam/cam_periph.c ============================================================================== --- stable/9/sys/cam/cam_periph.c Tue Jan 21 00:22:08 2014 (r260962) +++ stable/9/sys/cam/cam_periph.c Tue Jan 21 00:25:50 2014 (r260963) @@ -1786,9 +1786,11 @@ cam_periph_error(union ccb *ccb, cam_fla scan_ccb->ccb_h.func_code = XPT_SCAN_TGT; scan_ccb->crcn.flags = 0; xpt_rescan(scan_ccb); - } else + } else { xpt_print(newpath, "Can't allocate CCB to rescan target\n"); + xpt_free_path(newpath); + } } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401210025.s0L0PpCE067586>