summaryrefslogtreecommitdiffstats
path: root/t/t7406-submodule-update.sh
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-09-26 13:46:08 +0200
committerJunio C Hamano <gitster@pobox.com>2024-09-27 17:25:34 +0200
commit2e492f2047748cf70350d503214ef89f1110ee82 (patch)
tree88f9c78428ceea8acde6798128f3b52ac96f0759 /t/t7406-submodule-update.sh
parentgit: fix leaking argv when handling builtins (diff)
downloadgit-2e492f2047748cf70350d503214ef89f1110ee82.tar.xz
git-2e492f2047748cf70350d503214ef89f1110ee82.zip
submodule: fix leaking update strategy
We're not freeing the submodule update strategy command. Provide a helper function that does this for us and call it in `update_data_release()`. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rwxr-xr-xt/t7406-submodule-update.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t7406-submodule-update.sh b/t/t7406-submodule-update.sh
index 297c6c3b5c..0f0c86f9cb 100755
--- a/t/t7406-submodule-update.sh
+++ b/t/t7406-submodule-update.sh
@@ -12,6 +12,7 @@ submodule and "git submodule update --rebase/--merge" does not detach the HEAD.
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh