Skip to content

Commit 9d5a7df

Browse files
avargitster
authored andcommitted
revisions API: have release_revisions() release "date_mode"
Extend the the release_revisions() function so that it frees the "date_mode" in the "struct ref_info". This uses the date_mode_release() function added in 974c919 (date API: add and use a date_mode_release(), 2022-02-16). As that commit notes "t7004-tag.sh" tests for the leaks that are being fixed here. That test now fails "only" 44 tests, instead of the 46 it failed before this change. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6ab75ac commit 9d5a7df

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
@@ -2951,6 +2951,7 @@ void release_revisions(struct rev_info *revs)
29512951
release_revisions_cmdline(&revs->cmdline);
29522952
list_objects_filter_release(&revs->filter);
29532953
clear_pathspec(&revs->prune_data);
2954+
date_mode_release(&revs->date_mode);
29542955
release_revisions_mailmap(revs->mailmap);
29552956
free_grep_patterns(&revs->grep_filter);
29562957
diff_free(&revs->pruning);

0 commit comments

Comments
 (0)