diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-08-14 08:52:55 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-14 19:08:01 +0200 |
commit | 36f971f86182a25fa2fa4af680bf79f522a27f60 (patch) | |
tree | 533e024f52ef2a51fcd94bcf5a1581f9ed8dcd9c /t/t4069-remerge-diff.sh | |
parent | builtin/log: fix leak when showing converted blob contents (diff) | |
download | git-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-x | t/t4069-remerge-diff.sh | 1 |
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 |