From d553066590686ca7a1ab41be16fc894f51578d10 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 5 Nov 2015 11:31:52 +0100 Subject: [PATCH] CID 22548 Resource leak github issue #334 --- src/jsreport.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jsreport.c b/src/jsreport.c index 44b9ea252..a6be8b46b 100644 --- a/src/jsreport.c +++ b/src/jsreport.c @@ -76,6 +76,7 @@ static int report_json(const char *filename, report_context * ctx, const char *c "\"margin\": 0, \"name\": \"hextiles\", \"properties\": { }, \"spacing\": 0, " "\"tileheight\" : 64, \"tilewidth\" : 64 }], \"tilewidth\": 64, \"tileheight\": 96}", F); } + fclose(F); return 0; } return -1;