pretty: clear signature check

The signature check in the formatting context is never getting released.
Fix this to plug the resulting memory leak.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Patrick Steinhardt
2024-11-05 07:17:03 +01:00
committed by Junio C Hamano
parent 8dd3cb4b45
commit 0b20a28811
5 changed files with 5 additions and 0 deletions

View File

@@ -2032,6 +2032,7 @@ void repo_format_commit_message(struct repository *r,
free(context.commit_encoding);
repo_unuse_commit_buffer(r, commit, context.message);
signature_check_clear(&context.signature_check);
}
static void pp_header(struct pretty_print_context *pp,