commit d17218031565b6ab8e78ab5d24f1b16b0fa3f848 parent ad0550981b5cc3ec9105cdc847cb659eed759e34 Author: Andrej Kacian <ticho@claws-mail.org> Date: Thu, 25 Apr 2019 01:10:36 +0200 Fix a memory leak in sgpgme_sigstat_info_short() Diffstat:
| M | src/plugins/pgpcore/sgpgme.c | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/plugins/pgpcore/sgpgme.c b/src/plugins/pgpcore/sgpgme.c @@ -310,6 +310,10 @@ gchar *sgpgme_sigstat_info_short(gpgme_ctx_t ctx, gpgme_verify_result_t status) if (result == NULL) result = g_strdup(_("Error")); g_free(uname); + + if (key) + gpgme_key_release(key); + return result; }