Origin: upstream, http://git.ghostscript.com/?p=mujs.git;a=commit;h=910acc807c3c057e1c0726160808f3a9f37b40ec
From: Tor Andersson <tor.andersson@artifex.com>
Date: Tue, 17 May 2022 15:53:30 +0200
Subject: Issue #161: Don't fclose a FILE that is NULL.

---
 pp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pp.c b/pp.c
index bf6000c..2657369 100644
--- a/pp.c
+++ b/pp.c
@@ -34,7 +34,7 @@ void js_ppfile(js_State *J, const char *filename, int minify)
 
 	if (js_try(J)) {
 		js_free(J, s);
-		fclose(f);
+		if (f) fclose(f);
 		js_throw(J);
 	}
 
