]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/diff: free symmetric diff members
authorPatrick Steinhardt <ps@pks.im>
Wed, 14 Aug 2024 06:52:58 +0000 (08:52 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Aug 2024 17:08:02 +0000 (10:08 -0700)
commit77d4b3dd73c44b2c617345a6d9686d2f7f5b8a68
treeebb576a3a572e306176112c38971348363d70800
parent36f971f86182a25fa2fa4af680bf79f522a27f60
builtin/diff: free symmetric diff members

We populate a `struct symdiff` in case the user has requested a
symmetric diff. Part of this is to populate a `skip` bitmap that
indicates which commits shall be ignored in the diff. But while this
bitmap is dynamically allocated, we never free it.

Fix this by introducing and calling a new `symdiff_release()` function
that does this for us.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/diff.c
t/t4068-diff-symmetric-merge-base.sh
t/t4108-apply-threeway.sh