]> git.ipfire.org Git - thirdparty/git.git/commit
submodule: fix leaking submodule entry list
authorPatrick Steinhardt <ps@pks.im>
Mon, 30 Sep 2024 09:13:27 +0000 (11:13 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Sep 2024 18:23:03 +0000 (11:23 -0700)
commit5cca114973c602c9f8516e9ed34c76fd75fb999e
tree2fc75d716b6d40bebc2cdd0345c765d21a498efd
parent666643fa89e4386c0f4eabd1112e8b3af0cb9cc1
submodule: fix leaking submodule entry list

The submodule entry list returned by `submodules_of_tree()` is never
completely free'd by its only caller. Introduce a new function that
free's the list for us and call it.

While at it, also fix the leaking `branch_point` string.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
branch.c
submodule-config.c
submodule-config.h
t/t3207-branch-submodule.sh