projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b17dda3
)
Fix a memory leak in sgpgme_sigstat_info_short()
author
Andrej Kacian
<ticho@claws-mail.org>
Wed, 24 Apr 2019 23:10:36 +0000
(
01:10
+0200)
committer
Andrej Kacian
<ticho@claws-mail.org>
Sat, 4 May 2019 14:43:28 +0000
(16:43 +0200)
src/plugins/pgpcore/sgpgme.c
patch
|
blob
|
history
diff --git
a/src/plugins/pgpcore/sgpgme.c
b/src/plugins/pgpcore/sgpgme.c
index 79c0c9252af72020397e0b6160466da6366201aa..3d056e9be0918308a2302bf0649e111cded7ffc4 100644
(file)
--- 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;
}