Skip to content

Commit e966fc5

Browse files
avargitster
authored andcommitted
revisions API: have release_revisions() release "commits"
Extend the the release_revisions() function so that it frees the "commits" in the "struct rev_info". We don't expect to use this "struct rev_info" again, so there's no reason to NULL out revs->commits, as e.g. simplify_merges() and create_boundary_commit_list() do. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f0cb6b8 commit e966fc5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

revision.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2928,6 +2928,7 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, struct s
29282928

29292929
void release_revisions(struct rev_info *revs)
29302930
{
2931+
free_commit_list(revs->commits);
29312932
object_array_clear(&revs->pending);
29322933
}
29332934

0 commit comments

Comments
 (0)