summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r--sys/dev/acpi/acpitz.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpitz.c b/sys/dev/acpi/acpitz.c
index dc99e45827f..25635fe5edd 100644
--- a/sys/dev/acpi/acpitz.c
+++ b/sys/dev/acpi/acpitz.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpitz.c,v 1.16 2007/03/22 16:55:31 deraadt Exp $ */
+/* $OpenBSD: acpitz.c,v 1.17 2007/03/26 12:30:48 marco Exp $ */
/*
* Copyright (c) 2006 Can Erkin Acar <canacar@openbsd.org>
* Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
@@ -224,8 +224,10 @@ acpitz_setfan(struct acpitz_softc *sc, int i, char *method)
NULL, &res2))
printf("%s: %s[%d.%d] _STA fails\n",
DEVNAME(sc), name, x, y);
- else
+ else {
sc->sc_ac_stat[i] = aml_val2int(&res2);
+ aml_freevalue(&res2);
+ }
}
aml_freevalue(&res1);
}