summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2022-04-13 20:01:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-04-14 06:56:08 (GMT)
commit2108fe4a1976f95821e13503fd331f075da398c6 (patch)
tree9efbeb9ae5af4db1dc900ff36eabf41d451d3eb5 /t
parent1878b5edc03c4bf685c7278fc4ced4704c876984 (diff)
downloadgit-2108fe4a1976f95821e13503fd331f075da398c6.zip
git-2108fe4a1976f95821e13503fd331f075da398c6.tar.gz
git-2108fe4a1976f95821e13503fd331f075da398c6.tar.bz2
revisions API users: add straightforward release_revisions()
Add a release_revisions() to various users of "struct rev_list" in those straightforward cases where we only need to add the release_revisions() call to the end of a block, and don't need to e.g. refactor anything to use a "goto cleanup" pattern. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rw-r--r--t/helper/test-revision-walking.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/helper/test-revision-walking.c b/t/helper/test-revision-walking.c
index 625b2db..4a45d5b 100644
--- a/t/helper/test-revision-walking.c
+++ b/t/helper/test-revision-walking.c
@@ -43,6 +43,7 @@ static int run_revision_walk(void)
}
reset_revision_walk();
+ release_revisions(&rev);
return got_revision;
}