summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-11-29 15:41:49 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-11-29 15:41:49 -0800
commit49767c3d9f80c916c175adfc745e0823487d9d08 (patch)
treeeeff328ee4dc916e14a336abfb2cd8c79a6b346b /t
parentMerge branch 'tp/send-email-completion' (diff)
parentpack-bitmap.c: more aggressively free in free_bitmap_index() (diff)
downloadtgif-49767c3d9f80c916c175adfc745e0823487d9d08.tar.xz
Merge branch 'tb/plug-pack-bitmap-leaks'
Leakfix. * tb/plug-pack-bitmap-leaks: pack-bitmap.c: more aggressively free in free_bitmap_index() pack-bitmap.c: don't leak type-level bitmaps midx.c: write MIDX filenames to strbuf builtin/multi-pack-index.c: don't leak concatenated options builtin/repack.c: avoid leaking child arguments builtin/pack-objects.c: don't leak memory via arguments t/helper/test-read-midx.c: free MIDX within read_midx_file() midx.c: don't leak MIDX from verify_midx_file midx.c: clean up chunkfile after reading the MIDX
Diffstat (limited to 't')
-rw-r--r--t/helper/test-read-midx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/helper/test-read-midx.c b/t/helper/test-read-midx.c
index 9d6fa7a377..27072ba94d 100644
--- a/t/helper/test-read-midx.c
+++ b/t/helper/test-read-midx.c
@@ -55,9 +55,10 @@ static int read_midx_file(const char *object_dir, int show_objects)
printf("%s %"PRIu64"\t%s\n",
oid_to_hex(&oid), e.offset, e.p->pack_name);
}
- return 0;
}
+ close_midx(m);
+
return 0;
}