diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-11-05 07:17:35 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-11-04 22:37:55 -0800 |
commit | e4ba54d47b675e0613a2644f37c0b4f57a833a44 (patch) | |
tree | 47fd7f71c741723ec65e676eedff246cecba5681 /t/helper/test-submodule-nested-repo-config.c | |
parent | 1981d1eb3ecdefd2cdc665184d366728721f76e5 (diff) |
dir: release untracked cache data
There are several cases where we invalidate untracked cache directory
entries where we do not free the underlying data, but reset the number
of entries. This causes us to leak memory because `free_untracked()`
will not iterate over any potential entries which we still had in the
array.
Fix this issue by freeing old entries. The leak is exposed by t7519, but
plugging it alone does not make the whole test suite pass.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-submodule-nested-repo-config.c')
0 files changed, 0 insertions, 0 deletions