summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Library/DxeNetLib/DxeNetLib.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c b/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c
index 4bd84c4de7..c055db2b77 100644
--- a/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c
+++ b/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c
@@ -185,11 +185,7 @@ SyslogLocateSnp (
Snp = NULL;
}
- //
- // Handles is allocated by gBS AllocatePool() service.
- // So, gBS FreePool() service is used to free Handles.
- //
- gBS->FreePool (Handles);
+ FreePool (Handles);
return Snp;
}
@@ -1642,11 +1638,7 @@ NetGetChildHandle (
// Found item matched gEfiNicIp4ConfigVariableGuid
//
*ChildHandle = Handles[Index];
- //
- // Handles is allocated by gBS AllocatePool() service.
- // So, gBS FreePool() service is used to free Handles.
- //
- gBS->FreePool (Handles);
+ FreePool (Handles);
return EFI_SUCCESS;
}
}
@@ -1655,11 +1647,7 @@ NetGetChildHandle (
}
}
- //
- // Handles is allocated by gBS AllocatePool() service.
- // So, gBS FreePool() service is used to free Handles.
- //
- gBS->FreePool (Handles);
+ FreePool (Handles);
return Status;
}