]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/tag: fix leaking key ID on failure to sign
authorPatrick Steinhardt <ps@pks.im>
Tue, 5 Nov 2024 06:17:26 +0000 (07:17 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Nov 2024 06:37:55 +0000 (22:37 -0800)
commitd06e3ec858d4863baa5f918db414e890b08891d7
tree8ec0966b32e9ad98a12e0e48e0216dce5b64b219
parent1a99173de0618636fdd534f46b866a9bb39e487d
builtin/tag: fix leaking key ID on failure to sign

We do not free the key ID when signing a tag fails. Do so by using
the common exit path.

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