]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c
Update network drivers to use FreePool() instead of gBS->FreePool().
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Udp4Dxe / Udp4Impl.c
index 3c0e65f717901e13ae28834ccceb1daf5d090af4..710d0f9f59bfb64c23750010cf59f01fc72719bc 100644 (file)
@@ -1363,7 +1363,7 @@ Udp4RecycleRxDataWrap (
   //\r
   gBS->CloseEvent (Wrap->RxData.RecycleSignal);\r
 \r
-  gBS->FreePool (Wrap);\r
+  FreePool (Wrap);\r
 }\r
 \r
 \r
@@ -1413,7 +1413,7 @@ Udp4WrapRxData (
                   &Wrap->RxData.RecycleSignal\r
                   );\r
   if (EFI_ERROR (Status)) {\r
-    gBS->FreePool (Wrap);\r
+    FreePool (Wrap);\r
     return NULL;\r
   }\r
 \r
@@ -2012,7 +2012,7 @@ Udp4SetVariableData (
              );\r
     }\r
 \r
-    gBS->FreePool (Udp4Service->MacString);\r
+    FreePool (Udp4Service->MacString);\r
   }\r
 \r
   Udp4Service->MacString = NewMacString;\r
@@ -2027,7 +2027,7 @@ Udp4SetVariableData (
 \r
 ON_ERROR:\r
 \r
-  gBS->FreePool (Udp4VariableData);\r
+  FreePool (Udp4VariableData);\r
 \r
   return Status;\r
 }\r
@@ -2054,6 +2054,6 @@ Udp4ClearVariableData (
          NULL\r
          );\r
 \r
-  gBS->FreePool (Udp4Service->MacString);\r
+  FreePool (Udp4Service->MacString);\r
   Udp4Service->MacString = NULL;\r
 }\r