diff options
Diffstat (limited to 'source/tools/acpiexec/aeexec.c')
-rw-r--r-- | source/tools/acpiexec/aeexec.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/tools/acpiexec/aeexec.c b/source/tools/acpiexec/aeexec.c index af4d92a78..41898efd5 100644 --- a/source/tools/acpiexec/aeexec.c +++ b/source/tools/acpiexec/aeexec.c @@ -427,6 +427,7 @@ ExecuteOSI ( if (Obj->Type != ACPI_TYPE_INTEGER) { AcpiOsPrintf ("Invalid return type from _OSI method, %.2X\n", Obj->Type); + ACPI_FREE_BUFFER (ReturnValue); return (AE_ERROR); } @@ -434,12 +435,14 @@ ExecuteOSI ( { AcpiOsPrintf ("Invalid return value from _OSI, expected %.8X found %.8X\n", ExpectedResult, (UINT32) Obj->Integer.Value); + ACPI_FREE_BUFFER (ReturnValue); return (AE_ERROR); } /* Reset the OSI data */ AcpiGbl_OsiData = 0; + ACPI_FREE_BUFFER (ReturnValue); return (AE_OK); } @@ -830,7 +833,7 @@ AeMiscellaneousTests ( Status = AcpiGetVendorResource (Handle, "_CRS", &Uuid, &ReturnBuf); if (ACPI_SUCCESS (Status)) { - AcpiOsFree (ReturnBuf.Pointer); + ACPI_FREE_BUFFER (ReturnBuf); } } |