summaryrefslogtreecommitdiff
path: root/t/t5100/quoted-string.expect
diff options
context:
space:
mode:
authorLibravatar Ævar Arnfjörð Bjarmason <avarab@gmail.com>2022-03-04 19:32:17 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-03-04 13:24:19 -0800
commit759f34073807119ffb935a84aa86e6a8fa7a9bc4 (patch)
tree1a7587a86da6c9b94f064b5faa950832ca864764 /t/t5100/quoted-string.expect
parentrange-diff: plug memory leak in read_patches() (diff)
downloadtgif-759f34073807119ffb935a84aa86e6a8fa7a9bc4.tar.xz
repository.c: free the "path cache" in repo_clear()
The "struct path_cache" added in 102de880d24 (path.c: migrate global git_path_* to take a repository argument, 2018-05-17) is only used directly by code in repository.[ch] (but populated in path.[ch]). Let's move this code to repository.[ch], and stop leaking this memory when we run repo_clear(). To avoid the cast change it from a "const char *" to a "char *". This also removes the "PATH_CACHE_INIT" macro, which has never been used for anything. For the "struct repository" we already make a hard assumption that it (and "the_repository") can be identically initialized by making it a "static" variable, so making use of a "PATH_CACHE_INIT" somewhere would have been confusing. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5100/quoted-string.expect')
0 files changed, 0 insertions, 0 deletions