]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Make use of MdePkg's FreePool library function to replace gBS->FreePool.
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 11 Dec 2008 02:09:57 +0000 (02:09 +0000)
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 11 Dec 2008 02:09:57 +0000 (02:09 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6982 6f19259b-4bc3-4df7-8a09-765794883524

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