[Commits] [SCM] claws branch, master, updated. 3.13.2-50-g444054e

mones at claws-mail.org mones at claws-mail.org
Fri Feb 19 19:23:23 CET 2016


The branch, master has been updated
       via  444054e68dc8f3c273b18e5162348f7c96c21a3b (commit)
      from  701a0babe91bb8e11544113a3f3748782d589868 (commit)

Summary of changes:
 src/plugins/pgpcore/pgp_utils.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 444054e68dc8f3c273b18e5162348f7c96c21a3b
Author: Ricardo Mones <ricardo at mones.org>
Date:   Fri Feb 19 19:23:00 2016 +0100

    Fix leak on error and error reporting

diff --git a/src/plugins/pgpcore/pgp_utils.c b/src/plugins/pgpcore/pgp_utils.c
index 7174ec4..66f8e9b 100644
--- a/src/plugins/pgpcore/pgp_utils.c
+++ b/src/plugins/pgpcore/pgp_utils.c
@@ -76,12 +76,14 @@ gchar *get_part_as_string(MimeInfo *mimeinfo)
 	else {
 		filename = procmime_get_tmp_file_name(mimeinfo);
 		if (procmime_get_part(filename, mimeinfo) < 0) {
-			printf("error dumping file\n");
+			g_warning("error dumping temporary file '%s'", filename);
+			g_free(filename);
 			return NULL;
 		}
 		fp = g_fopen(filename,"rb");
 		if (!fp) {
-			printf("error reading file\n");
+			g_warning("error opening temporary file '%s'", filename);
+			g_free(filename);
 			return NULL;
 		}
 		textdata = fp_read_noconv(fp);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list