/* frees or reduces the usage count of a mac tree node smart pointer  */
IX_ETH_DB_PUBLIC void ixEthDBFreeMacTreeNode(MacTreeNode *macNode)
/* frees or reduces the usage count of a mac tree node smart pointer  */
IX_ETH_DB_PUBLIC void ixEthDBFreeMacTreeNode(MacTreeNode *macNode)
{
    if (macNode->descriptor != NULL)
    {
        ixEthDBFreeMacDescriptor(macNode->descriptor);
    }
    if (macNode->left != NULL)
    {
        ixEthDBFreeMacTreeNode(macNode->left);
    }
    if (macNode->right != NULL)
    {
        ixEthDBFreeMacTreeNode(macNode->right);
    }
    ixEthDBPoolFreeMacTreeNode(macNode);
}