diff options
| author | Junio C Hamano <gitster@pobox.com> | 2021-11-29 15:41:49 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-11-29 15:41:49 -0800 |
| commit | 49767c3d9f80c916c175adfc745e0823487d9d08 (patch) | |
| tree | eeff328ee4dc916e14a336abfb2cd8c79a6b346b /t/helper | |
| parent | 7c2abf1a83efa13ffc03a3847f774cf85ffce913 (diff) | |
| parent | 655b8561d6b10f22f0e7350df9388110667001af (diff) | |
| download | git-49767c3d9f80c916c175adfc745e0823487d9d08.tar.gz | |
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/helper')
| -rw-r--r-- | t/helper/test-read-midx.c | 3 |
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; } |
