diff options
author | Bob Moore <robert.moore@intel.com> | 2018-03-14 16:13:01 -0700 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-03-18 18:52:00 +0100 |
commit | 1c29c372b2d1d2415601041532745ce859f24126 (patch) | |
tree | a45d3514299a32cd641bd20866d9afb1e01a612e /drivers/acpi | |
parent | 87cd826b5979d91d4f2ba189e0652820f2da417f (diff) | |
download | linux-1c29c372b2d1d2415601041532745ce859f24126.tar.gz linux-1c29c372b2d1d2415601041532745ce859f24126.tar.bz2 linux-1c29c372b2d1d2415601041532745ce859f24126.zip |
ACPICA: Fix memory leak on unusual memory leak
Fixes a single-object memory leak on a store-to-reference method
invocation. ACPICA BZ 1439.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/acpica/psargs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/psargs.c b/drivers/acpi/acpica/psargs.c index dbc51bc5fdd6..5ca895da3b10 100644 --- a/drivers/acpi/acpica/psargs.c +++ b/drivers/acpi/acpica/psargs.c @@ -890,6 +890,10 @@ acpi_ps_get_next_arg(struct acpi_walk_state *walk_state, ACPI_POSSIBLE_METHOD_CALL); if (arg->common.aml_opcode == AML_INT_METHODCALL_OP) { + + /* Free method call op and corresponding namestring sub-ob */ + + acpi_ps_free_op(arg->common.value.arg); acpi_ps_free_op(arg); arg = NULL; walk_state->arg_count = 1; |