Fix minor resource leak.

Coverity issue.
This commit is contained in:
John McNamara 2017-10-04 08:16:09 +01:00
parent bcb97b0803
commit 11a89ec05a

View File

@ -226,9 +226,9 @@ _write_image_files(lxw_packager *self)
}
err = _add_file_to_zip(self, image_stream, filename);
RETURN_ON_ERROR(err);
fclose(image_stream);
RETURN_ON_ERROR(err);
}
}