]> git.ipfire.org Git - thirdparty/git.git/commit - ref-filter.c
ref-filter API user: add and use a ref_sorting_release()
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 20 Oct 2021 18:27:20 +0000 (20:27 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Oct 2021 18:36:13 +0000 (11:36 -0700)
commite5fb028688f5811bd835c0bc47f8d7a379a0d152
treea9e8e75d8139818d8f39240d5ef5bb9ce27ac179
parent37766b61cdb3e12709febcd2f9dbee2b90e62969
ref-filter API user: add and use a ref_sorting_release()

Add a ref_sorting_release() and use it for some of the current API
users, the ref_sorting_default() function and its siblings will do a
malloc() which wasn't being free'd previously.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/for-each-ref.c
builtin/tag.c
ref-filter.c
ref-filter.h