]> git.99rst.org Git - git.git/commit
submodule--helper: fix a leak with repo_clear()
authorÆvar Arnfjörð Bjarmason <redacted>
Wed, 31 Aug 2022 23:14:16 +0000 (01:14 +0200)
committerJunio C Hamano <redacted>
Fri, 2 Sep 2022 16:18:13 +0000 (09:18 -0700)
commit17af0a8444523f4df98e21165a3e476f05749237
tree2fab4926029fae8f27974f7867994fc83e4cad8e
parent980416e469ad2ed0d38630cf4c25390ae9731416
submodule--helper: fix a leak with repo_clear()

Call repo_clear() in ensure_core_worktree() to free the "struct
repository". Fixes a leak that's been here since
74d4731da1f (submodule--helper: replace connect-gitdir-workingtree by
ensure-core-worktree, 2018-08-13).

Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
Reviewed-by: Glen Choo <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/submodule--helper.c
git clone https://git.99rst.org/PROJECT