aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/dev
diff options
context:
space:
mode:
authorNate Lawson <njl@FreeBSD.org>2005-01-14 06:37:43 +0000
committerNate Lawson <njl@FreeBSD.org>2005-01-14 06:37:43 +0000
commitedd973a0132bbd6087729a84711df58d44738dfe (patch)
tree274c079a4923a5a1d696e682a90b6baec35dc36c /sys/contrib/dev
parent480265512451fb65dfea0add90098a406b5d8851 (diff)
downloadsrc-edd973a0132bbd6087729a84711df58d44738dfe.tar.gz
src-edd973a0132bbd6087729a84711df58d44738dfe.zip
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
Notes
Notes: svn path=/vendor-sys/acpica/dist/; revision=140216
Diffstat (limited to 'sys/contrib/dev')
-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 207365c0bddd..a11a67520a7c 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++;