[i-g-t,1/2] igt_fb: Close the image file when we are done with it
diff mbox

Message ID 1430393275-23124-1-git-send-email-tvrtko.ursulin@linux.intel.com
State New, archived
Headers show

Commit Message

Tvrtko Ursulin April 30, 2015, 11:27 a.m. UTC
From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
---
 lib/igt_fb.c | 2 ++
 1 file changed, 2 insertions(+)

Patch
diff mbox

diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index 6dc22bb..eed5405 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -388,6 +388,8 @@  void igt_paint_image(cairo_t *cr, const char *filename,
 	cairo_surface_destroy(image);
 
 	cairo_restore(cr);
+
+	fclose(f);
 }
 
 /**