]> Kevux Git Server - rit/commit
builtin/log: fix leaking commit list in git-cherry(1)
authorPatrick Steinhardt <ps@pks.im>
Tue, 11 Jun 2024 09:20:19 +0000 (11:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Jun 2024 20:15:06 +0000 (13:15 -0700)
commita282dbeba718db156678aadec6c47ba1d9f13d0f
tree3a008a7bd1e6b3ce25e27b1df2d04dd3eece33c0
parent8ff6bd47500dcd55d278fdbfe77fe838cc8dd3b1
builtin/log: fix leaking commit list in git-cherry(1)

We're storing the list of commits that git-cherry(1) is about to print
into a temporary list. This list is never getting free'd and thus leaks.
Fix this.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/log.c
t/t3500-cherry.sh