From 11a89ec05af8d06be0a5a5cd5785466cd8bde048 Mon Sep 17 00:00:00 2001 From: John McNamara Date: Wed, 4 Oct 2017 08:16:09 +0100 Subject: [PATCH] Fix minor resource leak. Coverity issue. --- src/packager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/packager.c b/src/packager.c index a192e775..d4e4705f 100644 --- a/src/packager.c +++ b/src/packager.c @@ -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); } }