summaryrefslogtreecommitdiff
path: root/EdkModulePkg/Universal/DevicePath/Dxe/DevicePathFromText.c
diff options
context:
space:
mode:
Diffstat (limited to 'EdkModulePkg/Universal/DevicePath/Dxe/DevicePathFromText.c')
-rw-r--r--EdkModulePkg/Universal/DevicePath/Dxe/DevicePathFromText.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/EdkModulePkg/Universal/DevicePath/Dxe/DevicePathFromText.c b/EdkModulePkg/Universal/DevicePath/Dxe/DevicePathFromText.c
index 3014b200ac..94a4a2b5b7 100644
--- a/EdkModulePkg/Universal/DevicePath/Dxe/DevicePathFromText.c
+++ b/EdkModulePkg/Universal/DevicePath/Dxe/DevicePathFromText.c
@@ -2277,10 +2277,10 @@ ConvertTextToDeviceNode (
DeviceNode = DumpNode (DeviceNodeStr);
} else {
DeviceNode = DumpNode (ParamStr);
- gBS->FreePool (ParamStr);
+ FreePool (ParamStr);
}
- gBS->FreePool (DeviceNodeStr);
+ FreePool (DeviceNodeStr);
return DeviceNode;
}
@@ -2346,12 +2346,12 @@ ConvertTextToDevicePath (
DeviceNode = DumpNode (DeviceNodeStr);
} else {
DeviceNode = DumpNode (ParamStr);
- gBS->FreePool (ParamStr);
+ FreePool (ParamStr);
}
NewDevicePath = AppendDeviceNodeProtocolInterface (DevicePath, DeviceNode);
- gBS->FreePool (DevicePath);
- gBS->FreePool (DeviceNode);
+ FreePool (DevicePath);
+ FreePool (DeviceNode);
DevicePath = NewDevicePath;
if (IsInstanceEnd) {
@@ -2359,12 +2359,12 @@ ConvertTextToDevicePath (
SetDevicePathInstanceEndNode (DeviceNode);
NewDevicePath = AppendDeviceNodeProtocolInterface (DevicePath, DeviceNode);
- gBS->FreePool (DevicePath);
- gBS->FreePool (DeviceNode);
+ FreePool (DevicePath);
+ FreePool (DeviceNode);
DevicePath = NewDevicePath;
}
}
- gBS->FreePool (DevicePathStr);
+ FreePool (DevicePathStr);
return DevicePath;
}