]> git.ipfire.org Git - thirdparty/git.git/commit
rerere: fix various trivial leaks
authorPatrick Steinhardt <ps@pks.im>
Tue, 11 Jun 2024 09:20:33 +0000 (11:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Jun 2024 20:15:06 +0000 (13:15 -0700)
commitf46ede661face3c57f31097960c00325cf21f67f
treedbe7478c18ff644afa3bca21d6e7574690e6b598
parent748bd0943b696ba2b2942ce6e9d0dbfebf8b1fc3
rerere: fix various trivial leaks

We leak various different string lists in the rerere code. Free those to
plug them.

Note that the `merge_rr` variable is intentionally being free'd with the
`free_util` parameter set to 1. The `util` field is used there to store
the IDs of every rerere item and thus needs to be freed, as well.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
rerere.c
t/t1021-rerere-in-workdir.sh
t/t3504-cherry-pick-rerere.sh
t/t7600-merge.sh