summaryrefslogtreecommitdiffstats
path: root/t/t4014-format-patch.sh
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-08-14 08:52:44 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-14 19:08:01 +0200
commit1bc158e7509851d9cb007273c9f75a238f295d2e (patch)
tree8c9cf57159d2c1077c6c68afec114fa16e1cd59e /t/t4014-format-patch.sh
parentdiff: fix leak when parsing invalid ignore regex option (diff)
downloadgit-1bc158e7509851d9cb007273c9f75a238f295d2e.tar.xz
git-1bc158e7509851d9cb007273c9f75a238f295d2e.zip
builtin/format-patch: fix various trivial memory leaks
There are various memory leaks hit by git-format-patch(1). Basically all of them are trivial, except that un-setting `diffopt.no_free` requires us to unset the `diffopt.file` because we manually close it already. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rwxr-xr-xt/t4014-format-patch.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t4014-format-patch.sh b/t/t4014-format-patch.sh
index 884f83fb8a..1c46e963e4 100755
--- a/t/t4014-format-patch.sh
+++ b/t/t4014-format-patch.sh
@@ -8,6 +8,7 @@ test_description='various format-patch tests'
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
. "$TEST_DIRECTORY"/lib-terminal.sh