svn commit: r265769 - stable/9/sys/kern

Christian Brueffer brueffer at FreeBSD.org
Fri May 9 13:21:14 UTC 2014


Author: brueffer
Date: Fri May  9 13:21:14 2014
New Revision: 265769
URL: http://svnweb.freebsd.org/changeset/base/265769

Log:
  MFC: r265244
  
  Free resources in an error case.
  
  CID:		1018947
  Found with:	Coverity Prevent(tm)

Modified:
  stable/9/sys/kern/kern_cpu.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/kern/kern_cpu.c
==============================================================================
--- stable/9/sys/kern/kern_cpu.c	Fri May  9 13:18:24 2014	(r265768)
+++ stable/9/sys/kern/kern_cpu.c	Fri May  9 13:21:14 2014	(r265769)
@@ -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;


More information about the svn-src-stable-9 mailing list