mirror of
https://github.com/git/git.git
synced 2025-12-18 12:00:25 +01:00
Fix a memory leak in "git check-ref-format" that's been present in the code in one form or another since38eedc634b(git check-ref-format --print, 2009-10-12), the code got substantially refactored incfbe22f03f(check-ref-format: handle subcommands in separate functions, 2010-08-05). As a result we can mark a test as passing with SANITIZE=leak using "TEST_PASSES_SANITIZE_LEAK=true". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
2.3 KiB
2.3 KiB