]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/UefiIfrSupportLib/UefiIfrForm.c
Make use of MdePkg's FreePool library function to replace gBS->FreePool.
[mirror_edk2.git] / MdeModulePkg / Library / UefiIfrSupportLib / UefiIfrForm.c
index 7c6f0faa37d0192d279fd37379675e83e2849f7d..fb023c39949984f5ce43c4a6b4e7888a8f76d7fd 100644 (file)
@@ -638,16 +638,16 @@ ConstructConfigAltResp (
     StrCat (TempStr, DescHdr + Index * 16);\r
     StrCat (TempStr, AltCfg[Index]);\r
 \r
-    gBS->FreePool (AltCfg[Index]);\r
+    FreePool (AltCfg[Index]);\r
   }\r
 \r
   if (NeedFreeConfigRequest) {\r
-    gBS->FreePool (ConfigRequest);\r
+    FreePool (ConfigRequest);\r
   }\r
-  gBS->FreePool (ConfigHdr);\r
-  gBS->FreePool (ConfigResp);\r
-  gBS->FreePool (DescHdr);\r
-  gBS->FreePool (AltCfg);\r
+  FreePool (ConfigHdr);\r
+  FreePool (ConfigResp);\r
+  FreePool (DescHdr);\r
+  FreePool (AltCfg);\r
 \r
   return EFI_SUCCESS;\r
 }\r
@@ -1088,7 +1088,7 @@ IsConfigHdrMatch (
     if (EFI_ERROR (Status) || (StrCmp (Name, StorageName) != 0)) {\r
       Match = FALSE;\r
     }\r
-    gBS->FreePool (Name);\r
+    FreePool (Name);\r
   }\r
 \r
   return Match;\r