ref: c19d8134ec3aed46c11ee2634288b943d4f6be89
parent: 6864defa05c5a2a5f8b1fb8e90c49c77d8652b05
author: Chris Liddell <chris.liddell@artifex.com>
date: Fri Apr 8 05:42:13 EDT 2016
Close file on error before exit
--- a/jbig2dec.c
+++ b/jbig2dec.c
@@ -433,7 +433,8 @@
f_page = fopen(fn_page, "rb");
if (f_page == NULL)
{
- fprintf(stderr, "error opening %s\n", fn_page);
+ fclose(f);
+ fprintf(stderr, "error opening %s\n", fn_page);
return 1;
}
}