shithub: jbig2

Download patch

ref: 76b6b9ec30859f32293286b3837f17a8252d010c
parent: ceb71749c865a4a4cd4c5a6ed0b052dff533a76c
author: Ralph Giles <giles@ghostscript.com>
date: Tue Mar 31 17:35:17 EDT 2009

Close the output pbm file after writing to it.

Resource leak reported by Coverity.

--- a/jbig2_image_pbm.c
+++ b/jbig2_image_pbm.c
@@ -71,6 +71,8 @@
 
     image = jbig2_image_read_pbm(ctx, in);
 
+    fclose(in);
+
     return (image);
 }