[Commits] [SCM] claws branch, master, updated. 3.17.0-67-g11ca74e

Colin colin at claws-mail.org
Fri Sep 28 16:55:33 CEST 2018


The branch, master has been updated
       via  11ca74eea4a04a3815ab6c6cef0df561d6fb6bb1 (commit)
      from  f93d092434e29d713cc9eaf50566fc43e5d3e147 (commit)

Summary of changes:
 src/common/utils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 11ca74eea4a04a3815ab6c6cef0df561d6fb6bb1
Author: Colin Leroy <colin at colino.net>
Date:   Fri Sep 28 16:55:24 2018 +0200

    Fix possible resource leak

diff --git a/src/common/utils.c b/src/common/utils.c
index 33eb31d..51813e1 100644
--- a/src/common/utils.c
+++ b/src/common/utils.c
@@ -2630,7 +2630,7 @@ gint copy_file_part(FILE *fp, off_t offset, size_t length, const gchar *dest)
 	if (copy_file_part_to_fp(fp, offset, length, dest_fp) < 0)
 		err = TRUE;
 
-	if (!err && fclose(dest_fp) == EOF) {
+	if (fclose(dest_fp) == EOF) {
 		FILE_OP_ERROR(dest, "fclose");
 		err = TRUE;
 	}

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list