diff options
author | 2021-10-26 17:01:08 -0400 | |
---|---|---|
committer | 2021-10-27 16:26:37 -0700 | |
commit | 492cb394fb2bcfa9a2f0f3f6cab466909927523f (patch) | |
tree | 6d37912dd4ee385518d7ff543c9d101367a16d57 /contrib/mw-to-git/t | |
parent | midx.c: clean up chunkfile after reading the MIDX (diff) | |
download | tgif-492cb394fb2bcfa9a2f0f3f6cab466909927523f.tar.xz |
midx.c: don't leak MIDX from verify_midx_file
The function midx.c:verify_midx_file() allocates a MIDX struct by
calling load_multi_pack_index(). But when cleaning up, it calls free()
without freeing any resources associated with the MIDX.
Call the more appropriate close_midx() which does free those resources,
which causes t5319.3 to pass when Git is compiled with SANITIZE=leak.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/mw-to-git/t')
0 files changed, 0 insertions, 0 deletions