diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2007-03-26 12:30:49 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2007-03-26 12:30:49 +0000 |
commit | ce9d81019faee36a69ac8c5dfdd2a0508eb9bce1 (patch) | |
tree | 5ab6ff8589ae1dbdb891c874394dca721b081b2d /sys/dev/acpi | |
parent | 0f737a84ab549622242ae568cfdd2d62541476ce (diff) |
Don't leak memory.
From giovanni <qgiovanni@gmail.com>
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r-- | sys/dev/acpi/acpitz.c | 6 |
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); } |