Date: Fri, 2 May 2014 21:34:17 +0000 (UTC) From: Christian Brueffer <brueffer@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r265244 - head/sys/kern Message-ID: <201405022134.s42LYHxV066853@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: brueffer Date: Fri May 2 21:34:17 2014 New Revision: 265244 URL: http://svnweb.freebsd.org/changeset/base/265244 Log: Free resources in an error case. CID: 1018947 Found with: Coverity Prevent(tm) MFC after: 1 week Modified: head/sys/kern/kern_cpu.c Modified: head/sys/kern/kern_cpu.c ============================================================================== --- head/sys/kern/kern_cpu.c Fri May 2 21:30:59 2014 (r265243) +++ head/sys/kern/kern_cpu.c Fri May 2 21:34:17 2014 (r265244) @@ -1037,6 +1037,7 @@ cpufreq_unregister(device_t dev) if (cf_dev == NULL) { device_printf(dev, "warning: cpufreq_unregister called with no cpufreq device active\n"); + free(devs, M_TEMP); return (0); } cfcount = 0;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405022134.s42LYHxV066853>