diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2006-03-16 02:39:58 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2006-03-16 02:39:58 +0000 |
commit | 6f1a0846b2ef1834287b408614441d4816497d49 (patch) | |
tree | d617280dce0860d4b93a90c2261ce8d07bb5ec95 /sys/arch/i386 | |
parent | fe91240cccde044df3c10e9f1b785c09dcf49898 (diff) |
dont leak memory when we fail to find any valid states.
from gwk, ok deraadt@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/i386/powernow-k8.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/powernow-k8.c b/sys/arch/i386/i386/powernow-k8.c index 5a8e0367bfa..dd8231eebad 100644 --- a/sys/arch/i386/i386/powernow-k8.c +++ b/sys/arch/i386/i386/powernow-k8.c @@ -1,4 +1,4 @@ -/* $OpenBSD: powernow-k8.c,v 1.6 2006/03/16 02:35:08 dlg Exp $ */ +/* $OpenBSD: powernow-k8.c,v 1.7 2006/03/16 02:39:57 dlg Exp $ */ /* * Copyright (c) 2004 Martin Végiard. @@ -403,6 +403,8 @@ k8_powernow_init(void) printf(" Mhz\n"); k8pnow_current_state = cstate; cpu_setperf = k8_powernow_setperf; + return; } } + free(cstate, M_DEVBUF); } |