aboutsummaryrefslogtreecommitdiffstats
path: root/t/t7005-editor.sh
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-05-27 13:46:44 +0200
committerJunio C Hamano <gitster@pobox.com>2024-05-27 11:20:00 -0700
commit49eb597ce08de7fc4837155fa7910dace92b9ae6 (patch)
tree1f425f0483e0c7355ae17bd34c5fbb334b08dabc /t/t7005-editor.sh
parent1b261c20ed28ad26ddbcd3dff94a248ac6866ac8 (diff)
downloadgit-49eb597ce08de7fc4837155fa7910dace92b9ae6.tar.gz
config: plug various memory leaks
Now that memory ownership rules around `git_config_string()` and `git_config_pathname()` are clearer, it also got easier to spot that the returned memory needs to be free'd. Plug a subset of those cases and mark now-passing tests as leak free. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7005-editor.sh')
-rwxr-xr-xt/t7005-editor.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t7005-editor.sh b/t/t7005-editor.sh
index 5fcf281dfb..b9822294fe 100755
--- a/t/t7005-editor.sh
+++ b/t/t7005-editor.sh
@@ -2,6 +2,7 @@
test_description='GIT_EDITOR, core.editor, and stuff'
+TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
unset EDITOR VISUAL GIT_EDITOR