[Commits] [SCM] claws branch, master, updated. 3.15.0-139-g9270dc3
Colin
colin at claws-mail.org
Mon Sep 18 10:09:58 CEST 2017
The branch, master has been updated
via 9270dc32a7f5754a42a66754937f5da43faf48d2 (commit)
from cc91e29fb4d18737d648ae2112063440e1cdcc0f (commit)
Summary of changes:
src/plugins/pgpcore/select-keys.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 9270dc32a7f5754a42a66754937f5da43faf48d2
Author: Colin Leroy <colin at colino.net>
Date: Mon Sep 18 10:09:52 2017 +0200
Fix a possible leak
diff --git a/src/plugins/pgpcore/select-keys.c b/src/plugins/pgpcore/select-keys.c
index 92c228b..5df8f68 100644
--- a/src/plugins/pgpcore/select-keys.c
+++ b/src/plugins/pgpcore/select-keys.c
@@ -302,8 +302,10 @@ fill_clist (struct select_keys_s *sk, const char *pattern, gpgme_protocol_t prot
update_progress (sk, ++running, pattern);
while ( !(err = gpgme_op_keylist_next ( ctx, &key )) ) {
gpgme_user_id_t uid = key->uids;
- if (!key->can_encrypt || key->revoked || key->expired || key->disabled)
+ if (!key->can_encrypt || key->revoked || key->expired || key->disabled) {
+ gpgme_key_unref(key);
continue;
+ }
debug_print ("%% %s:%d: insert\n", __FILE__ ,__LINE__ );
set_row (clist, key, proto );
for (; uid; uid = uid->next) {
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list