diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-09-26 13:46:18 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-09-27 08:25:35 -0700 |
commit | f1652c04b5da814a6bd15873a0a0323bf58badcf (patch) | |
tree | 4a615268a9f144085faff7cd499cedea8833e4d2 /t/helper/test-submodule-nested-repo-config.c | |
parent | 2266bb4f6a8a876b57eaa04dc93f7b567e0e4eed (diff) |
t/helper: fix leaking subrepo in nested submodule config helper
In the "submodule-nested-repo-config" helper we create a submodule
repository and print its configuration. We do not clear the repo,
causing a memory leak. Plug it.
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')
-rw-r--r-- | t/helper/test-submodule-nested-repo-config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper/test-submodule-nested-repo-config.c b/t/helper/test-submodule-nested-repo-config.c index 6ca069ce63..6dce957153 100644 --- a/t/helper/test-submodule-nested-repo-config.c +++ b/t/helper/test-submodule-nested-repo-config.c @@ -29,6 +29,6 @@ int cmd__submodule_nested_repo_config(int argc, const char **argv) print_config_from_gitmodules(&subrepo, argv[2]); submodule_free(the_repository); - + repo_clear(&subrepo); return 0; } |