]> git.ipfire.org Git - thirdparty/git.git/commit
trailer: fix leaking trailer values
authorPatrick Steinhardt <ps@pks.im>
Tue, 5 Nov 2024 06:17:12 +0000 (07:17 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Nov 2024 06:37:54 +0000 (22:37 -0800)
commit3f692fe5beb817fbb22754281dfb5ebf8863d0a3
treef58a066bb5a83e8020c4c1fdce4f1b02c0c52737
parentd34b5cbf028ffda45928e50884a6ef3aa533e6e5
trailer: fix leaking trailer values

Fix leaking trailer values when replacing the value with a command or
when the token value is empty.

This leak is exposed by t7513, but plugging it does not make the whole
test suite pass.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trailer.c