]> git.ipfire.org Git - thirdparty/git.git/commit - revision.c
revisions API: have release_revisions() release "date_mode"
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 14 Apr 2022 05:56:38 +0000 (07:56 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Apr 2022 06:56:10 +0000 (23:56 -0700)
commit9d5a7df3322551422f257c686f6621a22e0fa731
tree68c46943ffa7385ab65f729b2e8baa162d12243c
parent6ab75ac83926c154a58104ac832363f128f8ed56
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 974c919d36d (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 <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision.c