Changed all memory allocations to use Cm functions.

date	99.07.22.15.07.00;	author grsmith1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 17:46:55 +00:00
parent 924f7aa7ab
commit 459ce36a19
2 changed files with 10 additions and 8 deletions

View File

@ -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 (
}

View File

@ -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)
{
/*