]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Universal/DevicePath/Dxe/DevicePathToText.c
Clean up the gBS sevice (CopyMem, SetMem, AllocatePool, FreePool) with the correspond...
[mirror_edk2.git] / EdkModulePkg / Universal / DevicePath / Dxe / DevicePathToText.c
index 03150706c79516579f06eb17f73bd6e70356638a..f1365baa2626c496da5d82b338b4b8c265cf224f 100644 (file)
@@ -132,7 +132,7 @@ ReallocatePool (
       CopyMem (NewPool, OldPool, OldSize < NewSize ? OldSize : NewSize);\r
     }\r
 \r
-    gBS->FreePool (OldPool);\r
+    FreePool (OldPool);\r
   }\r
 \r
   return NewPool;\r
@@ -196,7 +196,7 @@ CatPrint (
     Str->Len = Size - sizeof (UINT16);\r
   }\r
 \r
-  gBS->FreePool (AppendStr);\r
+  FreePool (AppendStr);\r
   return Str->Str;\r
 }\r
 \r
@@ -1488,7 +1488,7 @@ ConvertDevicePathToText (
   //\r
   // Shrink pool used for string allocation\r
   //\r
-  gBS->FreePool (UnpackDevPath);\r
+  FreePool (UnpackDevPath);\r
 \r
   NewSize = (Str.Len + 1) * sizeof (CHAR16);\r
   Str.Str = ReallocatePool (Str.Str, NewSize, NewSize);\r