Config = Ip4ConfigFindNicVariable (Variable, NicAddr);\r
\r
if (Config == NULL) {\r
- gBS->FreePool (Variable);\r
+ FreePool (Variable);\r
return NULL;\r
}\r
\r
Ip4ConfigWriteVariable (NewVariable);\r
\r
if (NewVariable != NULL) {\r
- gBS->FreePool (NewVariable);\r
+ FreePool (NewVariable);\r
};\r
\r
- gBS->FreePool (Config);\r
+ FreePool (Config);\r
Config = NULL;\r
}\r
\r
- gBS->FreePool (Variable);\r
+ FreePool (Variable);\r
return Config;\r
}\r
\r
\r
*ConfigLen = Len;\r
\r
- gBS->FreePool (Config);\r
+ FreePool (Config);\r
return Status;\r
}\r
\r
Status = Ip4ConfigWriteVariable (NewVariable);\r
\r
if (NewVariable != NULL) {\r
- gBS->FreePool (NewVariable);\r
+ FreePool (NewVariable);\r
}\r
\r
//\r
// Variable is NULL when saving the first configure parameter\r
//\r
if (Variable != NULL) {\r
- gBS->FreePool (Variable);\r
+ FreePool (Variable);\r
}\r
\r
if (EFI_ERROR (Status)) {\r
if (Instance->NicConfig != NULL) {\r
ASSERT (Instance->NicConfig->Source == IP4_CONFIG_SOURCE_DHCP);\r
Perment = Instance->NicConfig->Perment;\r
- gBS->FreePool (Instance->NicConfig);\r
+ FreePool (Instance->NicConfig);\r
}\r
\r
Instance->NicConfig = AllocatePool (sizeof (NIC_IP4_CONFIG_INFO) + 2* sizeof (EFI_IP4_ROUTE_TABLE));\r
)\r
{\r
if (Instance->NicConfig != NULL) {\r
- gBS->FreePool (Instance->NicConfig);\r
+ FreePool (Instance->NicConfig);\r
Instance->NicConfig = NULL;\r
}\r
\r