Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2022-11-08 21:17:44 +0300
committerJunio C Hamano <gitster@pobox.com>2022-11-21 06:32:48 +0300
commitfc47252d5b36fe2267e34aa9471dd7bb37d40545 (patch)
tree5706734b688378d662cd04b742e7c54b3410a290 /t/t3413-rebase-hook.sh
parente84a26e32faba0c2ae7a19fa9bf805645f620e82 (diff)
revision API: call graph_clear() in release_revisions()
Call graph_clear() in release_revisions(), this will free memory allocated by e.g. this command, which will now run without memory leaks: git -P log -1 --graph --no-graph --graph Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 't/t3413-rebase-hook.sh')
-rwxr-xr-xt/t3413-rebase-hook.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t3413-rebase-hook.sh b/t/t3413-rebase-hook.sh
index 9fab0d779b..e8456831e8 100755
--- a/t/t3413-rebase-hook.sh
+++ b/t/t3413-rebase-hook.sh
@@ -5,6 +5,7 @@ test_description='git rebase with its hook(s)'
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
test_expect_success setup '