From 3146a26ffd5d25e96479a1afc73b8bbf67989a76 Mon Sep 17 00:00:00 2001 From: njl Date: Fri, 14 Jan 2005 06:37:43 +0000 Subject: 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 --- sys/contrib/dev/acpica/nsinit.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sys/contrib/dev') 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++; -- cgit v1.1