diff: free state populated via options
commit36f971f86182a25fa2fa4af680bf79f522a27f60
authorPatrick Steinhardt <ps@pks.im>
Wed, 14 Aug 2024 06:52:55 +0000 (14 08:52 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Aug 2024 17:08:01 +0000 (14 10:08 -0700)
tree533e024f52ef2a51fcd94bcf5a1581f9ed8dcd9c
parent0aaca0ec099139f12df6d66cfa09a27ec85106cc
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>
diff.c
t/t4064-diff-oidfind.sh
t/t4065-diff-anchored.sh
t/t4069-remerge-diff.sh