]> git.ipfire.org Git - thirdparty/git.git/commit
revision: fix leaking parents when simplifying commits
authorPatrick Steinhardt <ps@pks.im>
Thu, 26 Sep 2024 11:47:05 +0000 (13:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Sep 2024 15:25:37 +0000 (08:25 -0700)
commitfa016423c748cd142a40c10eb7f9cc4c4fffbb98
tree24deafaad2b7051a396b5f97c1db619d1108d1dd
parentb6c3f8e12c0a521450923ddbcf7a19a81aa3c4e7
revision: fix leaking parents when simplifying commits

When simplifying commits, e.g. because they are treesame with their
parents, we unset the commit's parent pointers but never free them. Plug
the resulting memory leaks.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision.c
t/t1414-reflog-walk.sh
t/t5310-pack-bitmaps.sh
t/t5326-multi-pack-bitmaps.sh
t/t6004-rev-list-path-optim.sh
t/t6019-rev-list-ancestry-path.sh
t/t6111-rev-list-treesame.sh