diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-08-14 08:52:44 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-14 19:08:01 +0200 |
commit | 1bc158e7509851d9cb007273c9f75a238f295d2e (patch) | |
tree | 8c9cf57159d2c1077c6c68afec114fa16e1cd59e /t/t4014-format-patch.sh | |
parent | diff: fix leak when parsing invalid ignore regex option (diff) | |
download | git-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-x | t/t4014-format-patch.sh | 1 |
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 |