summaryrefslogtreecommitdiff
path: root/t/helper/test-path-utils.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-08-01 12:40:56 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-01 08:47:37 -0700
commit11f841c1cc9c7ffadf5d462d25a378fcab5bb6e1 (patch)
treefd03655da0f37f65038aac6f6d40b826f581e307 /t/helper/test-path-utils.c
parent145c9790207b9847b609d997c86c7cf8cec043b2 (diff)
t/test-repository: fix leaking repository
The test-repository test helper zeroes out `the_repository` such that it can be sure that our codebase only ends up using the supplied repository that we initialize in the respective helper functions. This does cause memory leaks though as the data that `the_repository` has been holding onto is not referenced anymore. Fix this by calling `repo_clear()` instead. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-path-utils.c')
0 files changed, 0 insertions, 0 deletions