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>
This commit is contained in:
Patrick Steinhardt
2024-09-26 13:46:14 +02:00
committed by Junio C Hamano
parent 8f786a8e9f
commit 2266bb4f6a
2 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,8 @@
#
test_description='test clone --reference'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
base_dir=$(pwd)