Update network drivers to use FreePool() instead of gBS->FreePool().
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9424 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -67,7 +67,7 @@ Ip4FreeRouteEntry (
|
||||
ASSERT (RtEntry->RefCnt > 0);
|
||||
|
||||
if (--RtEntry->RefCnt == 0) {
|
||||
gBS->FreePool (RtEntry);
|
||||
FreePool (RtEntry);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ Ip4FreeRouteCacheEntry (
|
||||
ASSERT (RtCacheEntry->RefCnt > 0);
|
||||
|
||||
if (--RtCacheEntry->RefCnt == 0) {
|
||||
gBS->FreePool (RtCacheEntry);
|
||||
FreePool (RtCacheEntry);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -252,7 +252,7 @@ Ip4FreeRouteTable (
|
||||
|
||||
Ip4CleanRouteCache (&RtTable->Cache);
|
||||
|
||||
gBS->FreePool (RtTable);
|
||||
FreePool (RtTable);
|
||||
}
|
||||
|
||||
|
||||
@@ -611,7 +611,7 @@ Ip4BuildEfiRouteTable (
|
||||
RtTable = IpInstance->RouteTable;
|
||||
|
||||
if (IpInstance->EfiRouteTable != NULL) {
|
||||
gBS->FreePool (IpInstance->EfiRouteTable);
|
||||
FreePool (IpInstance->EfiRouteTable);
|
||||
|
||||
IpInstance->EfiRouteTable = NULL;
|
||||
IpInstance->EfiRouteCount = 0;
|
||||
|
Reference in New Issue
Block a user