svn commit: r254442 - stable/9/sys/dev/cpuctl

Konstantin Belousov kib at FreeBSD.org
Sat Aug 17 08:05:33 UTC 2013


Author: kib
Date: Sat Aug 17 08:05:32 2013
New Revision: 254442
URL: http://svnweb.freebsd.org/changeset/base/254442

Log:
  MFC r254191:
  Match malloc(9) calls with free(9), not contigfree(9).

Modified:
  stable/9/sys/dev/cpuctl/cpuctl.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/cpuctl/cpuctl.c
==============================================================================
--- stable/9/sys/dev/cpuctl/cpuctl.c	Sat Aug 17 07:14:45 2013	(r254441)
+++ stable/9/sys/dev/cpuctl/cpuctl.c	Sat Aug 17 08:05:32 2013	(r254442)
@@ -346,8 +346,7 @@ update_intel(int cpu, cpuctl_update_args
 	else
 		ret = EEXIST;
 fail:
-	if (ptr != NULL)
-		contigfree(ptr, args->size, M_CPUCTL);
+	free(ptr, M_CPUCTL);
 	return (ret);
 }
 
@@ -476,8 +475,7 @@ update_via(int cpu, cpuctl_update_args_t
 	else
 		ret = 0;
 fail:
-	if (ptr != NULL)
-		contigfree(ptr, args->size, M_CPUCTL);
+	free(ptr, M_CPUCTL);
 	return (ret);
 }
 


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