mirror of
https://github.com/acpica/acpica/
synced 2025-02-23 00:44:17 +03:00
Changed all memory allocations to use Cm functions.
date 99.07.22.15.07.00; author grsmith1; state Exp;
This commit is contained in:
parent
924f7aa7ab
commit
459ce36a19
@ -339,7 +339,7 @@ AmlGetRvalue (
|
||||
/* Convert indirect name ptr to direct name ptr */
|
||||
|
||||
TempHandle = (*StackPtr)->Lvalue.Object;
|
||||
OsdFree (*StackPtr);
|
||||
CmFree (*StackPtr);
|
||||
(*StackPtr) = TempHandle;
|
||||
Status = AE_OK;
|
||||
break;
|
||||
@ -453,7 +453,7 @@ AmlGetRvalue (
|
||||
|
||||
if ((Status = AmlGetFieldUnitValue (*StackPtr, ObjDesc)) != AE_OK)
|
||||
{
|
||||
OsdFree (ObjDesc);
|
||||
CmFree (ObjDesc);
|
||||
ObjDesc = NULL;
|
||||
}
|
||||
|
||||
@ -475,7 +475,7 @@ AmlGetRvalue (
|
||||
|
||||
if ((Status = AmlGetFieldUnitValue (*StackPtr, ObjDesc)) != AE_OK)
|
||||
{
|
||||
OsdFree(ObjDesc);
|
||||
CmFree(ObjDesc);
|
||||
ObjDesc = NULL;
|
||||
}
|
||||
|
||||
@ -766,7 +766,7 @@ AmlGetRvalue (
|
||||
|
||||
default:
|
||||
|
||||
OsdFree (ObjDesc);
|
||||
CmFree (ObjDesc);
|
||||
DEBUG_PRINT (ACPI_ERROR, (
|
||||
"AmlGetRvalue/Number: internal error - expected AML number, found %02x\n",
|
||||
*(UINT8 *) ValDesc));
|
||||
@ -784,6 +784,7 @@ AmlGetRvalue (
|
||||
|
||||
case TYPE_DefField:
|
||||
|
||||
|
||||
/*
|
||||
* XXX - Implementation limitation: Fields are implemented as type
|
||||
* XXX - Number, but they really are supposed to be type Buffer.
|
||||
@ -968,7 +969,7 @@ AmlGetRvalue (
|
||||
|
||||
if ((Status = AmlGetFieldUnitValue (ValDesc, ObjDesc)) != AE_OK)
|
||||
{
|
||||
OsdFree (ObjDesc);
|
||||
CmFree (ObjDesc);
|
||||
FUNCTION_STATUS_EXIT (Status);
|
||||
return Status;
|
||||
}
|
||||
@ -1045,4 +1046,4 @@ AmlGetRvalue (
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -320,7 +320,7 @@ AmlExecStore (
|
||||
Status = AmlObjPushIfExec (MODE_Exec);
|
||||
if (AE_OK != Status)
|
||||
{
|
||||
OsdFree (DestDesc);
|
||||
CmFree (DestDesc);
|
||||
DestDesc = NULL;
|
||||
}
|
||||
else
|
||||
@ -776,6 +776,7 @@ AmlExecStore (
|
||||
DestDesc->Buffer.Sequence = AmlBufSeq ();
|
||||
}
|
||||
|
||||
|
||||
NsSetValue (TempHandle, DestDesc, DestDesc->Type);
|
||||
|
||||
if (Stacked)
|
||||
@ -857,7 +858,7 @@ AmlExecStore (
|
||||
|
||||
if (DeleteDestDesc)
|
||||
{
|
||||
OsdFree (DeleteDestDesc);
|
||||
CmFree (DeleteDestDesc);
|
||||
if (ObjStack[ObjStackTop] == DeleteDestDesc)
|
||||
{
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user