diff-tree: call free_commit_list() instead of duplicating its code