aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-06-11 11:20:19 +0200
committerJunio C Hamano <gitster@pobox.com>2024-06-11 13:15:06 -0700
commita282dbeba718db156678aadec6c47ba1d9f13d0f (patch)
tree3a008a7bd1e6b3ce25e27b1df2d04dd3eece33c0 /t
parent8ff6bd47500dcd55d278fdbfe77fe838cc8dd3b1 (diff)
downloadgit-a282dbeba718db156678aadec6c47ba1d9f13d0f.tar.gz
builtin/log: fix leaking commit list in git-cherry(1)
We're storing the list of commits that git-cherry(1) is about to print into a temporary list. This list is never getting free'd and thus leaks. Fix this. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t3500-cherry.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t3500-cherry.sh b/t/t3500-cherry.sh
index 78c3eac54b..61ca87512d 100755
--- a/t/t3500-cherry.sh
+++ b/t/t3500-cherry.sh
@@ -11,6 +11,7 @@ checks that git cherry only returns the second patch in the local branch
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
GIT_AUTHOR_EMAIL=bogus_email_address