]> git.ipfire.org Git - thirdparty/git.git/commit
t/helper: fix leaking multi-pack-indices in "read-midx"
authorPatrick Steinhardt <ps@pks.im>
Thu, 22 Aug 2024 09:17:38 +0000 (11:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 22 Aug 2024 16:18:05 +0000 (09:18 -0700)
commitfb24460e1d28d963eb0eac75d3342b492583d2c9
tree1e9843d86db8ac15d89ffe683d2e97a31758bcda
parentbda97cb1199919a192cc821a9e03b810b7d96f8f
t/helper: fix leaking multi-pack-indices in "read-midx"

Several of the subcommands of `test-helper read-midx` do not close the
MIDX that they have opened, leading to memory leaks. Fix those.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-read-midx.c
t/t5319-multi-pack-index.sh
t/t7704-repack-cruft.sh