[gs-commits] mupdf/master - 0_6-267-g85723e3 - Close output file in fontdump even when not being able to open input file.

Tor Andersson tor at ghostscript.com
Wed Aug 18 13:10:40 UTC 2010


commit 85723e3992d74a4af5a39c05695712b561c24833
Author: Sebastian Rasmussen <sebras at hotmail.com>
Date:   Mon Aug 9 19:47:59 2010 +0000

    Close output file in fontdump even when not being able to open input file.
    
    Ignore-this: 3454b8c7707b0ab945c6c88551c4bf53
    
    darcs-hash:20100809194759-86a4e-0722d50cd97eb605d70c27b57773efeef09a2dbd.gz

 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/mupdf/fontdump.c b/mupdf/fontdump.c
index 99d8499..efda0b0 100644
--- a/mupdf/fontdump.c
+++ b/mupdf/fontdump.c
@@ -56,6 +56,7 @@ main(int argc, char **argv)
 		fi = fopen(argv[i], "rb");
 		if (!fi)
 		{
+			fclose(fo);
 			fprintf(stderr, "fontdump: could not open input file '%s'\n", argv[i]);
 			return 1;
 		}

--
git/hooks/post-receive


More information about the gs-commits mailing list