]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Universal/Disk/Partition/Dxe/Partition.c
Perfect the msa of the following modules, DiskIo, Partition, English and Ebc.
[mirror_edk2.git] / EdkModulePkg / Universal / Disk / Partition / Dxe / Partition.c
index b4207d42b8617656abb6627b52cb21df63a3dafb..86d1cfe52bd013cd9c99036e8c6ba6a37a2ea184 100644 (file)
@@ -384,8 +384,8 @@ PartitionDriverBindingStop (
               EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER\r
               );\r
       } else {\r
-        gBS->FreePool (Private->DevicePath);\r
-        gBS->FreePool (Private);\r
+        FreePool (Private->DevicePath);\r
+        FreePool (Private);\r
       }\r
 \r
     }\r
@@ -653,7 +653,7 @@ Returns:
   Private->DevicePath           = AppendDevicePathNode (ParentDevicePath, DevicePathNode);\r
 \r
   if (Private->DevicePath == NULL) {\r
-    gBS->FreePool (Private);\r
+    FreePool (Private);\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
 \r
@@ -693,8 +693,8 @@ Returns:
                     EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER\r
                     );\r
   } else {\r
-    gBS->FreePool (Private->DevicePath);\r
-    gBS->FreePool (Private);\r
+    FreePool (Private->DevicePath);\r
+    FreePool (Private);\r
   }\r
 \r
   return Status;\r