From 766c7483c335931b190a78d78d62e5a5e69dc8b9 Mon Sep 17 00:00:00 2001 From: xdu2 Date: Fri, 13 Nov 2009 06:13:59 +0000 Subject: 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 --- MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c') diff --git a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c index 87ec0c1d64..00309f4451 100644 --- a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c +++ b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c @@ -91,7 +91,7 @@ Mtftp4WrqSendBlock ( if (EFI_ERROR (Status) || (DataLen > Instance->BlkSize)) { if (DataBuf != NULL) { - gBS->FreePool (DataBuf); + FreePool (DataBuf); } Mtftp4SendError ( @@ -111,7 +111,7 @@ Mtftp4WrqSendBlock ( if (DataLen > 0) { NetbufAllocSpace (UdpPacket, DataLen, FALSE); CopyMem (Packet->Data.Data, DataBuf, DataLen); - gBS->FreePool (DataBuf); + FreePool (DataBuf); } } @@ -462,7 +462,7 @@ ON_EXIT: // restart the receive, otherwise end the session. // if ((Packet != NULL) && (UdpPacket->BlockOpNum > 1)) { - gBS->FreePool (Packet); + FreePool (Packet); } if (UdpPacket != NULL) { -- cgit v1.2.3