test-read-midx: fix leak of bitmap_index struct
commite861b0963626dd2732f7efbf2a187a85b060d9cb
authorJeff King <peff@peff.net>
Thu, 7 Oct 2021 02:24:40 +0000 (6 22:24 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Oct 2021 18:01:22 +0000 (7 11:01 -0700)
tree6e813daac052e5dab2dbab6802d3ecc72cf8bd55
parent324efc90d1b1a660388f8cabbb72e803160082d3
test-read-midx: fix leak of bitmap_index struct

In read_midx_preferred_pack(), we open the bitmap index but never free
it. This isn't a big deal since this is just a test helper, and we exit
immediately after, but since we're trying to keep our leak-checking tidy
now, it's worth fixing.

Signed-off-by: Jeff King <peff@peff.net>
Acked-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-read-midx.c