AcpiOsAllocate
if ((buf.Pointer = AcpiOsAllocate(buf.Length)) == NULL) {
if ((buf->Pointer = AcpiOsAllocate(buf->Length)) == NULL)
if ((newp = AcpiOsAllocate(buf->Length * 2)) == NULL)
if ((cp = AcpiOsAllocate(sizeof(*cp))) != NULL) {
levels = AcpiOsAllocate(num * sizeof(*levels));