aboutsummaryrefslogtreecommitdiffstats
path: root/t/t9903-bash-prompt.sh
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-08-01 12:38:30 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-01 08:47:35 -0700
commited041007f09f34585db3e248082e8c7083c257dc (patch)
treee83b6e706dc9df00f54a376adc1a57f4efff609a /t/t9903-bash-prompt.sh
parentbuiltin/describe: fix leaking array when running diff-index (diff)
downloadgit-ed041007f09f34585db3e248082e8c7083c257dc.tar.gz
git-ed041007f09f34585db3e248082e8c7083c257dc.zip
builtin/describe: fix trivial memory leak when describing blob
We never free the `struct strvec args` variable in `describe_blob()`, which thus causes a memory leak. Fix this. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9903-bash-prompt.sh')
-rwxr-xr-xt/t9903-bash-prompt.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t9903-bash-prompt.sh b/t/t9903-bash-prompt.sh
index d667dda654..95e9955bca 100755
--- a/t/t9903-bash-prompt.sh
+++ b/t/t9903-bash-prompt.sh
@@ -8,6 +8,7 @@ test_description='test git-specific bash prompt functions'
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+TEST_PASSES_SANITIZE_LEAK=true
. ./lib-bash.sh
. "$GIT_BUILD_DIR/contrib/completion/git-prompt.sh"