summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Taylor Blau <me@ttaylorr.com>2021-10-20 23:39:47 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-10-21 09:07:55 -0700
commit692305ec677b6ff67b67db9f1d55e7ca77e9dd9a (patch)
treed83d447f9628abf5f5da9c1007eae72d30c5a372 /t
parentThe fourteenth batch (diff)
downloadtgif-692305ec677b6ff67b67db9f1d55e7ca77e9dd9a.tar.xz
midx.c: clean up chunkfile after reading the MIDX
In order to read the contents of a MIDX, we initialize a chunkfile structure which can read the table of contents and assign pointers into different sections of the file for us. We do call free(), since the chunkfile struct is heap allocated, but not the more appropriate free_chunkfile(), which also frees memory that the structure itself owns. Call that instead to avoid leaking memory in this function. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
0 files changed, 0 insertions, 0 deletions