]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Driver.c
Update network drivers to use FreePool() instead of gBS->FreePool().
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Udp4Dxe / Udp4Driver.c
index c063d41b4236641413f17dfec3a8184256751098..d313601a5e4fbe83bd6b4e5ff9611896273d2853 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2006, Intel Corporation.<BR>\r
+Copyright (c) 2006 - 2009, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -127,7 +127,7 @@ Udp4DriverBindingStart (
 \r
   Status = Udp4CreateService (Udp4Service, This->DriverBindingHandle, ControllerHandle);\r
   if (EFI_ERROR (Status)) {\r
-    gBS->FreePool (Udp4Service);\r
+    FreePool (Udp4Service);\r
     return Status;\r
   }\r
 \r
@@ -142,7 +142,7 @@ Udp4DriverBindingStart (
                   );\r
   if (EFI_ERROR (Status)) {\r
     Udp4CleanService (Udp4Service);\r
-    gBS->FreePool (Udp4Service);\r
+    FreePool (Udp4Service);\r
   } else {\r
     Udp4SetVariableData (Udp4Service);\r
   }\r
@@ -222,7 +222,7 @@ Udp4DriverBindingStop (
 \r
     Udp4CleanService (Udp4Service);\r
 \r
-    gBS->FreePool (Udp4Service);\r
+    FreePool (Udp4Service);\r
   } else {\r
 \r
     while (!IsListEmpty (&Udp4Service->ChildrenList)) {\r
@@ -352,7 +352,7 @@ ON_ERROR:
 \r
   Udp4CleanInstance (Instance);\r
 \r
-  gBS->FreePool (Instance);\r
+  FreePool (Instance);\r
 \r
   return Status;\r
 }\r
@@ -470,7 +470,7 @@ Udp4ServiceBindingDestroyChild (
 \r
   gBS->RestoreTPL (OldTpl);\r
 \r
-  gBS->FreePool (Instance);\r
+  FreePool (Instance);\r
 \r
   return EFI_SUCCESS;\r
 }\r