talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit cab9f7c7a3ec9134197188dbeacb1b2b9e6c19ec
parent b17dda3046b44e615747ad59fbcc7b5c75053fd1
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:
Msrc/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; }