implement abr_tree_collect()
free the result of abr_tree_collect