diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2008-01-08 20:50:00 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2008-01-08 20:50:00 +0000 |
commit | 9cbab18fea343a44d6a9a457e60710469de3b89a (patch) | |
tree | c582f5753b4c50219a6701a18b8acea6637f5692 /sys/dev/acpi | |
parent | 6ec508422037069f69bb75d80acf5d48f6a163bb (diff) |
Don't free res twice.
ok jordan
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r-- | sys/dev/acpi/acpitz.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/acpi/acpitz.c b/sys/dev/acpi/acpitz.c index 10a989d9c3c..ccf7f841b25 100644 --- a/sys/dev/acpi/acpitz.c +++ b/sys/dev/acpi/acpitz.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpitz.c,v 1.21 2008/01/06 18:06:50 marco Exp $ */ +/* $OpenBSD: acpitz.c,v 1.22 2008/01/08 20:49:59 marco Exp $ */ /* * Copyright (c) 2006 Can Erkin Acar <canacar@openbsd.org> * Copyright (c) 2005 Marco Peereboom <marco@openbsd.org> @@ -317,8 +317,8 @@ acpitz_getreading(struct acpitz_softc *sc, char *name) int rv = -1; if (aml_evalname(sc->sc_acpi, sc->sc_devnode, name, 0, NULL, &res)) { - dnprintf(10, "%s: acpitz_getreading: no %s\n", DEVNAME(sc), name); - aml_freevalue(&res); + dnprintf(10, "%s: acpitz_getreading: no %s\n", DEVNAME(sc), + name); goto out; } rv = aml_val2int(&res); |