summaryrefslogtreecommitdiffstats
path: root/t/t4069-remerge-diff.sh
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-08-14 08:52:55 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-14 19:08:01 +0200
commit36f971f86182a25fa2fa4af680bf79f522a27f60 (patch)
tree533e024f52ef2a51fcd94bcf5a1581f9ed8dcd9c /t/t4069-remerge-diff.sh
parentbuiltin/log: fix leak when showing converted blob contents (diff)
downloadgit-36f971f86182a25fa2fa4af680bf79f522a27f60.tar.xz
git-36f971f86182a25fa2fa4af680bf79f522a27f60.zip
diff: free state populated via options
The `objfind` and `anchors` members of `struct diff_options` are populated via option parsing, but are never freed in `diff_free()`. Fix this to plug those memory leaks. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4069-remerge-diff.sh')
-rwxr-xr-xt/t4069-remerge-diff.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t4069-remerge-diff.sh b/t/t4069-remerge-diff.sh
index 07323ebafe..888714bbd3 100755
--- a/t/t4069-remerge-diff.sh
+++ b/t/t4069-remerge-diff.sh
@@ -2,6 +2,7 @@
test_description='remerge-diff handling'
+TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
# This test is ort-specific