diff --git a/MdeModulePkg/Bus/Pci/EhciDxe/EhciSched.c b/MdeModulePkg/Bus/Pci/EhciDxe/EhciSched.c index 89ec339dd0..936a855f12 100644 --- a/MdeModulePkg/Bus/Pci/EhciDxe/EhciSched.c +++ b/MdeModulePkg/Bus/Pci/EhciDxe/EhciSched.c @@ -981,7 +981,7 @@ EhcMoniteAsyncRequests ( } if (ProcBuf != NULL) { - gBS->FreePool (ProcBuf); + FreePool (ProcBuf); } } diff --git a/MdeModulePkg/Bus/Pci/UhciDxe/Uhci.c b/MdeModulePkg/Bus/Pci/UhciDxe/Uhci.c index deb21dd837..26f13dbfd0 100644 --- a/MdeModulePkg/Bus/Pci/UhciDxe/Uhci.c +++ b/MdeModulePkg/Bus/Pci/UhciDxe/Uhci.c @@ -1490,7 +1490,7 @@ UhciAllocateDev ( return Uhc; ON_ERROR: - gBS->FreePool (Uhc); + FreePool (Uhc); return NULL; } @@ -1520,7 +1520,7 @@ UhciFreeDev ( FreeUnicodeStringTable (Uhc->CtrlNameTable); } - gBS->FreePool (Uhc); + FreePool (Uhc); }