/* Release all the resource used the DNS service binding instance. */
VOID DnsDestroyService(IN DNS_SERVICE *DnsSb)
/* Release all the resource used the DNS service binding instance. */
VOID DnsDestroyService(IN DNS_SERVICE *DnsSb)
{
  UdpIoFreeIo (DnsSb->ConnectUdp);
  if (DnsSb->TimerToGetMap != NULL) {
    gBS->CloseEvent (DnsSb->TimerToGetMap);
  }
  if (DnsSb->Timer != NULL) {
    gBS->CloseEvent (DnsSb->Timer);
  }
  FreePool (DnsSb);
}