From 64a16a730955cd928f201abf138896b31f64d0d5 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Thu, 29 Jan 2015 11:10:32 +0100 Subject: [PATCH] CheckBasicStyle: Fixed a forgotten file close. --- src/CheckBasicStyle.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CheckBasicStyle.lua b/src/CheckBasicStyle.lua index 0c7b05d6d..648a5711b 100644 --- a/src/CheckBasicStyle.lua +++ b/src/CheckBasicStyle.lua @@ -167,6 +167,7 @@ local function ProcessFile(a_FileName) os.exit(1) end local all = f:read("*all") + f:close() -- Check that the last line is empty - otherwise processing won't work properly: local lastChar = string.byte(all, string.len(all))