svn commit: r260963 - stable/9/sys/cam
Alexander Motin
mav at FreeBSD.org
Tue Jan 21 00:25:51 UTC 2014
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);
+ }
}
}
More information about the svn-src-stable-9
mailing list