[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-255-gb78a997e2
wwp at claws-mail.org
wwp at claws-mail.org
Tue Sep 28 17:41:17 CEST 2021
The branch, gtk3 has been updated
via b78a997e2cfc2ba74585fc0328fea5ac8280f6bc (commit)
from b0a8b7617778210053f087b5db57696e4c4fab64 (commit)
Summary of changes:
src/plugins/pgpcore/sgpgme.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit b78a997e2cfc2ba74585fc0328fea5ac8280f6bc
Author: wwp <subscript at free.fr>
Date: Tue Sep 28 17:41:01 2021 +0200
Fix CID 1492251: resource leaks.
diff --git a/src/plugins/pgpcore/sgpgme.c b/src/plugins/pgpcore/sgpgme.c
index b40b84087..4ea85cb9b 100644
--- a/src/plugins/pgpcore/sgpgme.c
+++ b/src/plugins/pgpcore/sgpgme.c
@@ -559,11 +559,13 @@ gchar *sgpgme_get_encrypt_data(GSList *recp_names, gpgme_protocol_t proto)
gchar *fpr = skey->fpr;
gchar *tmp = NULL;
debug_print("adding %s\n", fpr);
- tmp = g_strconcat(ret?ret:"", fpr, " ", NULL);
- g_free(ret);
+ tmp = g_strconcat(ret ? ret : "", fpr, " ", NULL);
+ if (ret)
+ g_free(ret);
ret = tmp;
i++;
}
+ g_free(kset);
return ret;
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list