Snp = NULL;\r
}\r
\r
- FreePool (Handles);\r
+ //\r
+ // Handles is allocated by gBS AllocatePool() service. \r
+ // So, gBS FreePool() service is used to free Handles.\r
+ //\r
+ gBS->FreePool (Handles);\r
return Snp;\r
}\r
\r
// Found item matched gEfiNicIp4ConfigVariableGuid\r
//\r
*ChildHandle = Handles[Index];\r
- FreePool (Handles);\r
+ //\r
+ // Handles is allocated by gBS AllocatePool() service. \r
+ // So, gBS FreePool() service is used to free Handles.\r
+ //\r
+ gBS->FreePool (Handles);\r
return EFI_SUCCESS;\r
}\r
}\r
}\r
}\r
\r
- FreePool (Handles);\r
+ //\r
+ // Handles is allocated by gBS AllocatePool() service. \r
+ // So, gBS FreePool() service is used to free Handles.\r
+ //\r
+ gBS->FreePool (Handles);\r
return Status;\r
}\r
\r