]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/submodule--helper: fix leaking error buffer
authorPatrick Steinhardt <ps@pks.im>
Thu, 26 Sep 2024 11:46:14 +0000 (13:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Sep 2024 15:25:34 +0000 (08:25 -0700)
commit2266bb4f6a8a876b57eaa04dc93f7b567e0e4eed
treeb26425fd641d6ebf110186cf8918870b7fc0e2b4
parent8f786a8e9fbbc8d110937a0ffdfe559f945aab50
builtin/submodule--helper: fix leaking error buffer

Fix leaking error buffer when `compute_alternate_path()` fails.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c
t/t7408-submodule-reference.sh