]> git.ipfire.org Git - thirdparty/git.git/commit
t/helper: stop re-initialization of `the_repository`
authorPatrick Steinhardt <ps@pks.im>
Tue, 5 Nov 2024 06:17:40 +0000 (07:17 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Nov 2024 06:37:56 +0000 (22:37 -0800)
commita53144cf1bfc5ef5b4d8b58311ea83e32e00a69f
tree533d6214e3c1711974d7a3480cbdd5d9105be037
parent1f5ff83eab03773692fe6f7bab7f10ad82ab031b
t/helper: stop re-initialization of `the_repository`

While "common-main.c" already initializes `the_repository` for us, we do
so a second time in the "read-cache" test helper. This causes a memory
leak because the old repository's contents isn't released.

Stop calling `initialize_repository()` to plug this leak.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-read-cache.c
t/t7519-status-fsmonitor.sh