talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit a24745f499008e5a9e3055190fe47ebba6ac9315
parent 5d4193bd118810861ab4ccaec879bfc0a81f9c8f
Author: Colin Leroy <colin@colino.net>
Date:   Fri, 28 Sep 2018 16:55:24 +0200

Fix possible resource leak

Diffstat:
Msrc/common/utils.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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; }