mirror of
https://github.com/acpica/acpica/
synced 2025-01-27 11:49:27 +03:00
Fix possible memory leak.
Ensure cleanup after a memory allocation failure in dsmethod.c. Original Linux change from Jesper Juhl.
This commit is contained in:
parent
27d3c34f82
commit
05432f7a2f
@ -481,7 +481,8 @@ AcpiDsCallControlMethod (
|
|||||||
Info = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_EVALUATE_INFO));
|
Info = ACPI_ALLOCATE_ZEROED (sizeof (ACPI_EVALUATE_INFO));
|
||||||
if (!Info)
|
if (!Info)
|
||||||
{
|
{
|
||||||
return_ACPI_STATUS (AE_NO_MEMORY);
|
Status = AE_NO_MEMORY;
|
||||||
|
goto Cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
Info->Parameters = &ThisWalkState->Operands[0];
|
Info->Parameters = &ThisWalkState->Operands[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user