}\r
}\r
\r
- gBS->FreePool (OpenInfoBuffer);\r
+ FreePool (OpenInfoBuffer);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
}\r
}\r
\r
if (DefaultNode != NULL) {\r
- gBS->FreePool (DefaultNode);\r
+ FreePool (DefaultNode);\r
}\r
\r
return EFI_SUCCESS;\r
}\r
\r
if (TerminalDevice->DevicePath != NULL) {\r
- gBS->FreePool (TerminalDevice->DevicePath);\r
+ FreePool (TerminalDevice->DevicePath);\r
}\r
\r
- gBS->FreePool (TerminalDevice);\r
+ FreePool (TerminalDevice);\r
}\r
}\r
\r
if (DefaultNode != NULL) {\r
- gBS->FreePool (DefaultNode);\r
+ FreePool (DefaultNode);\r
}\r
\r
This->Stop (This, Controller, 0, NULL);\r
// Free the ParentDevicePath that was duplicated in Start()\r
//\r
if (!EFI_ERROR (Status)) {\r
- gBS->FreePool (ParentDevicePath);\r
+ FreePool (ParentDevicePath);\r
}\r
}\r
\r
\r
gBS->CloseEvent (TerminalDevice->TwoSecondTimeOut);\r
gBS->CloseEvent (TerminalDevice->SimpleInput.WaitForKey);\r
- gBS->FreePool (TerminalDevice->DevicePath);\r
- gBS->FreePool (TerminalDevice);\r
+ FreePool (TerminalDevice->DevicePath);\r
+ FreePool (TerminalDevice);\r
}\r
}\r
\r
SetTerminalDevicePath (TerminalType, ParentDevicePath, &TempDevicePath);\r
NewVariable = AppendDevicePathInstance (Variable, TempDevicePath);\r
if (Variable != NULL) {\r
- gBS->FreePool (Variable);\r
+ FreePool (Variable);\r
}\r
\r
if (TempDevicePath != NULL) {\r
- gBS->FreePool (TempDevicePath);\r
+ FreePool (TempDevicePath);\r
}\r
\r
Variable = NewVariable;\r
Variable\r
);\r
ASSERT_EFI_ERROR (Status);\r
- gBS->FreePool (Variable);\r
+ FreePool (Variable);\r
\r
return ;\r
}\r
//\r
Instance = GetNextDevicePathInstance (&Variable, &InstanceSize);\r
if (Instance == NULL) {\r
- gBS->FreePool (OriginalVariable);\r
+ FreePool (OriginalVariable);\r
return ;\r
}\r
//\r
FoundOne = TRUE;\r
}\r
\r
- gBS->FreePool (TempDevicePath);\r
+ FreePool (TempDevicePath);\r
}\r
}\r
//\r
SavedNewVariable = NewVariable;\r
NewVariable = AppendDevicePathInstance (NewVariable, Instance);\r
if (SavedNewVariable != NULL) {\r
- gBS->FreePool (SavedNewVariable);\r
+ FreePool (SavedNewVariable);\r
}\r
}\r
//\r
// Get next device path instance from Variable\r
//\r
- gBS->FreePool (Instance);\r
+ FreePool (Instance);\r
Instance = GetNextDevicePathInstance (&Variable, &InstanceSize);\r
} while (Instance != NULL);\r
\r
- gBS->FreePool (OriginalVariable);\r
+ FreePool (OriginalVariable);\r
\r
if (FoundOne) {\r
VariableSize = GetDevicePathSize (NewVariable);\r
}\r
\r
if (NewVariable != NULL) {\r
- gBS->FreePool (NewVariable);\r
+ FreePool (NewVariable);\r
}\r
\r
return ;\r
//\r
// Allocate the buffer to return\r
//\r
- gBS->FreePool (Buffer);\r
+ FreePool (Buffer);\r
Buffer = AllocatePool (BufferSize);\r
if (Buffer == NULL) {\r
*VariableSize = 0;\r
Status = gRT->GetVariable (Name, VendorGuid, NULL, &BufferSize, Buffer);\r
if (EFI_ERROR (Status)) {\r
BufferSize = 0;\r
- gBS->FreePool (Buffer);\r
+ FreePool (Buffer);\r
Buffer = NULL;\r
}\r
} else {\r
// Variable not found or other errors met.\r
//\r
BufferSize = 0;\r
- gBS->FreePool (Buffer);\r
+ FreePool (Buffer);\r
Buffer = NULL;\r
}\r
\r