diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-11-08 19:17:44 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-11-21 04:32:48 +0100 |
commit | fc47252d5b36fe2267e34aa9471dd7bb37d40545 (patch) | |
tree | 5706734b688378d662cd04b742e7c54b3410a290 /t/t3413-rebase-hook.sh | |
parent | unpack-file: fix ancient leak in create_temp_file() (diff) | |
download | git-fc47252d5b36fe2267e34aa9471dd7bb37d40545.tar.xz git-fc47252d5b36fe2267e34aa9471dd7bb37d40545.zip |
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-x | t/t3413-rebase-hook.sh | 1 |
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 ' |