summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorxtraeme <xtraeme@NetBSD.org>2006-08-06 18:21:32 +0000
committerxtraeme <xtraeme@NetBSD.org>2006-08-06 18:21:32 +0000
commit421fdf2f64e2cbea5ec6ee1ccd2aebd820bb5eea (patch)
tree60630c406a2e9ec7ced0ec83d853db97adb15565 /sys/arch/amd64
parentcc94fcb6e97a7a55285335f6effa8dcc3b262c6c (diff)
Free freq_names if k[78]pnow_current_state is NULL, pointed out
by cube.
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/powernow_k8.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/powernow_k8.c b/sys/arch/amd64/amd64/powernow_k8.c
index a2ae958bce9..90b7a6244ea 100644
--- a/sys/arch/amd64/amd64/powernow_k8.c
+++ b/sys/arch/amd64/amd64/powernow_k8.c
@@ -1,4 +1,4 @@
-/* $NetBSD: powernow_k8.c,v 1.1 2006/08/06 15:37:21 xtraeme Exp $ */
+/* $NetBSD: powernow_k8.c,v 1.2 2006/08/06 18:21:32 xtraeme Exp $ */
/* $OpenBSD: powernow-k8.c,v 1.8 2006/06/16 05:58:50 gwk Exp $ */
/*-
@@ -89,7 +89,7 @@
/* AMD POWERNOW K8 driver */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: powernow_k8.c,v 1.1 2006/08/06 15:37:21 xtraeme Exp $");
+__KERNEL_RCSID(0, "$NetBSD: powernow_k8.c,v 1.2 2006/08/06 18:21:32 xtraeme Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -420,6 +420,7 @@ k8_powernow_init(void)
if (k8pnow_current_state == NULL) {
free(cstate, M_DEVBUF);
+ free(freq_names, M_SYSCTLDATA);
return;
}