Fix possible resource leak

This commit is contained in:
Colin Leroy 2018-09-28 16:55:24 +02:00 committed by Andrej Kacian
parent 5d4193bd11
commit a24745f499

View file

@ -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;
}