summaryrefslogtreecommitdiff
path: root/t/unit-tests/t-strvec.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-08-14 08:52:33 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-14 10:08:00 -0700
commitde54b450a3275e98858bf7e83475ad2465cce073 (patch)
tree49168071c0f7392d4fdcf4bc22b47e4dad39bca5 /t/unit-tests/t-strvec.c
parenta0b82622cbb31de66d7f5f0b1e39f349edaeb009 (diff)
merge-ort: unconditionally release attributes index
We conditionally release the index used for reading gitattributes in merge-ort based on whether or the index has been populated. This check uses `cache_nr` as a condition. This isn't sufficient though, as the variable may be zero even when some other parts of the index have been populated. This leads to memory leaks when sparse checkouts are in use, as we may not end up releasing the sparse checkout patterns. Fix this issue by unconditionally releasing the index. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/unit-tests/t-strvec.c')
0 files changed, 0 insertions, 0 deletions