From: qwang12 Date: Thu, 11 Dec 2008 02:09:57 +0000 (+0000) Subject: Make use of MdePkg's FreePool library function to replace gBS->FreePool. X-Git-Tag: edk2-stable201903~19264 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=fca1cc7199b5abcba465d51ac6f265b2253d68dd Make use of MdePkg's FreePool library function to replace gBS->FreePool. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6982 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdeModulePkg/Library/UefiIfrSupportLib/UefiIfrForm.c b/MdeModulePkg/Library/UefiIfrSupportLib/UefiIfrForm.c index 7c6f0faa37..fb023c3994 100644 --- a/MdeModulePkg/Library/UefiIfrSupportLib/UefiIfrForm.c +++ b/MdeModulePkg/Library/UefiIfrSupportLib/UefiIfrForm.c @@ -638,16 +638,16 @@ ConstructConfigAltResp ( StrCat (TempStr, DescHdr + Index * 16); StrCat (TempStr, AltCfg[Index]); - gBS->FreePool (AltCfg[Index]); + FreePool (AltCfg[Index]); } if (NeedFreeConfigRequest) { - gBS->FreePool (ConfigRequest); + FreePool (ConfigRequest); } - gBS->FreePool (ConfigHdr); - gBS->FreePool (ConfigResp); - gBS->FreePool (DescHdr); - gBS->FreePool (AltCfg); + FreePool (ConfigHdr); + FreePool (ConfigResp); + FreePool (DescHdr); + FreePool (AltCfg); return EFI_SUCCESS; } @@ -1088,7 +1088,7 @@ IsConfigHdrMatch ( if (EFI_ERROR (Status) || (StrCmp (Name, StorageName) != 0)) { Match = FALSE; } - gBS->FreePool (Name); + FreePool (Name); } return Match;