/* Destroy the Dhcp6 service. The Dhcp6 service may be partly initialized, or partly destroyed. If a resource is destroyed, it is marked as such in case the destroy failed and being called again later. */
VOID Dhcp6DestroyService(IN OUT DHCP6_SERVICE *Service)
/* Destroy the Dhcp6 service. The Dhcp6 service may be partly initialized, or partly destroyed. If a resource is destroyed, it is marked as such in case the destroy failed and being called again later. */
VOID Dhcp6DestroyService(IN OUT DHCP6_SERVICE *Service)
{
  ASSERT (Service->NumOfChild == 0);
  if (Service->ClientId != NULL) {
    FreePool (Service->ClientId);
  }
  if (Service->UdpIo != NULL) {
    UdpIoFreeIo (Service->UdpIo);
  }
  FreePool (Service);
}