aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/parser/psparse.c
diff options
context:
space:
mode:
authorLin Ming <ming.m.lin@intel.com>2008-09-26 23:50:24 -0400
committerLen Brown <len.brown@intel.com>2008-10-22 23:14:48 -0400
commitd8a0ec914afa1a994d2f6184ac4c6668b5f8068f (patch)
treea7db5cd3beebfafdd140c9ca0249388084dd24e5 /drivers/acpi/parser/psparse.c
parent68e125c40597802b9789bc696775bf0246e7667d (diff)
ACPICA: Fixed a couple memory leaks associated with "implicit return"
Fixed a couple memory leaks associated with "implicit return" objects when the AML Interpreter slack mode is enabled. http://www.acpica.org/bugzilla/show_bug.cgi?id=349 Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/parser/psparse.c')
-rw-r--r--drivers/acpi/parser/psparse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/acpi/parser/psparse.c b/drivers/acpi/parser/psparse.c
index 52caaf6582e7..68e932f215ea 100644
--- a/drivers/acpi/parser/psparse.c
+++ b/drivers/acpi/parser/psparse.c
@@ -635,10 +635,12 @@ acpi_status acpi_ps_parse_aml(struct acpi_walk_state *walk_state)
635 ACPI_WALK_METHOD_RESTART; 635 ACPI_WALK_METHOD_RESTART;
636 } 636 }
637 } else { 637 } else {
638 /* On error, delete any return object */ 638 /* On error, delete any return object or implicit return */
639 639
640 acpi_ut_remove_reference(previous_walk_state-> 640 acpi_ut_remove_reference(previous_walk_state->
641 return_desc); 641 return_desc);
642 acpi_ds_clear_implicit_return
643 (previous_walk_state);
642 } 644 }
643 } 645 }
644 646