[PATCH 1/7] util: add find_leaves() supplimenting find_leaf()