Пример #1
0
static void recursively_free_nodes(clusternode *node) {
    if(node) {
        recursively_free_nodes(node->left);
        recursively_free_nodes(node->right);
        recursively_free_intervals(node->interval_head);
        free(node);
    }
}
Пример #2
0
static void recursively_free_nodes(splaytree_node *node) {
	if(node) {
		recursively_free_nodes(node->left);
		recursively_free_nodes(node->right);
		xfree(node);
	}
	return;
}
Пример #3
0
void free_tree(clustertree *tree) {
    recursively_free_nodes(tree->root);
    free(tree);
}