summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/acpica
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2005-01-14 06:37:43 +0000
committernjl <njl@FreeBSD.org>2005-01-14 06:37:43 +0000
commit3146a26ffd5d25e96479a1afc73b8bbf67989a76 (patch)
tree274c079a4923a5a1d696e682a90b6baec35dc36c /sys/contrib/dev/acpica
parentd724817235abfea4d1628dfcc23d05cad5a87419 (diff)
downloadFreeBSD-src-3146a26ffd5d25e96479a1afc73b8bbf67989a76.zip
FreeBSD-src-3146a26ffd5d25e96479a1afc73b8bbf67989a76.tar.gz
Clean up a small memory leak introduced with the previous commit to
dsutils.c. We need to GC the implicitly-returned object. Submitted by: Robert.Moore at Intel MFC after: 1 day
Diffstat (limited to 'sys/contrib/dev/acpica')
-rw-r--r--sys/contrib/dev/acpica/nsinit.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/contrib/dev/acpica/nsinit.c b/sys/contrib/dev/acpica/nsinit.c
index 207365c..a11a675 100644
--- a/sys/contrib/dev/acpica/nsinit.c
+++ b/sys/contrib/dev/acpica/nsinit.c
@@ -515,6 +515,13 @@ AcpiNsInitOneDevice (
}
else
{
+ /* Delete any return object (Especially if ImplicitReturn is enabled) */
+
+ if (Pinfo.ReturnObject)
+ {
+ AcpiUtRemoveReference (Pinfo.ReturnObject);
+ }
+
/* Count of successful INIs */
Info->Num_INI++;
OpenPOWER on IntegriCloud