ref: 910acc807c3c057e1c0726160808f3a9f37b40ec
parent: 160ae29578054dc09fd91e5401ef040d52797e61
author: Tor Andersson <[email protected]>
date: Tue May 17 11:53:30 EDT 2022
Issue #161: Don't fclose a FILE that is NULL.
--- a/pp.c
+++ b/pp.c
@@ -34,7 +34,7 @@
if (js_try(J)) {
js_free(J, s);
- fclose(f);
+ if (f) fclose(f);
js_throw(J);
}