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>maint
parent
8f786a8e9f
commit
2266bb4f6a
|
|
@ -1621,6 +1621,8 @@ static int add_possible_reference_from_superproject(
|
|||
; /* nothing */
|
||||
}
|
||||
}
|
||||
|
||||
strbuf_release(&err);
|
||||
strbuf_release(&sb);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@
|
|||
#
|
||||
|
||||
test_description='test clone --reference'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
base_dir=$(pwd)
|
||||
|
|
|
|||
Loading…
Reference in New Issue