mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 00:43:12 +00:00
platform/x86: alienware-wmi: Correct a memory leak
An ACPI buffer that was allocated was not being freed after use. Signed-off-by: Mario Limonciello <[email protected]> Cc: [email protected] Signed-off-by: Darren Hart (VMware) <[email protected]>
This commit is contained in:
committed by
Darren Hart (VMware)
parent
affab51082
commit
ff0e9f2628
@@ -536,6 +536,7 @@ static acpi_status alienware_wmax_command(struct wmax_basic_args *in_args,
|
||||
if (obj && obj->type == ACPI_TYPE_INTEGER)
|
||||
*out_data = (u32) obj->integer.value;
|
||||
}
|
||||
kfree(output.pointer);
|
||||
return status;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user