diff options
author | njl <njl@FreeBSD.org> | 2005-01-14 06:37:43 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2005-01-14 06:37:43 +0000 |
commit | 3146a26ffd5d25e96479a1afc73b8bbf67989a76 (patch) | |
tree | 274c079a4923a5a1d696e682a90b6baec35dc36c /sys/contrib | |
parent | d724817235abfea4d1628dfcc23d05cad5a87419 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/contrib/dev/acpica/nsinit.c | 7 |
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++; |