/* Free all nodes in IP6_ADDRESS_INFO_ENTRY in the list array specified with ListHead. */
VOID Ip6FreeAddressInfoList(IN LIST_ENTRY *ListHead)
/* Free all nodes in IP6_ADDRESS_INFO_ENTRY in the list array specified with ListHead. */
VOID Ip6FreeAddressInfoList(IN LIST_ENTRY *ListHead)
{
  IP6_ADDRESS_INFO_ENTRY  *Node;
  LIST_ENTRY              *Entry;
  LIST_ENTRY              *NextEntry;
  NET_LIST_FOR_EACH_SAFE (Entry, NextEntry, ListHead) {
    Node = NET_LIST_USER_STRUCT (Entry, IP6_ADDRESS_INFO_ENTRY, Link);
    RemoveEntryList (&Node->Link);
    FreePool (Node);
  }
}