Fixed a file descriptor leak

This commit is contained in:
Timo Smit 2017-02-12 13:29:45 +01:00
parent c47c6572da
commit 034a926bc9
1 changed files with 4 additions and 1 deletions

View File

@ -71,7 +71,10 @@ end
function files.loadCFG(fileName, idExpr, fileCreate)
local functionStart = et.trap_Milliseconds()
local fileString = files.open(fileName, et.FS_READ, fileCreate)
local fileString = files.open(fileName, et.FS_READ, fileCreate).."\n\n"
et.trap_FS_FCloseFile(fileDescriptor)
local arrayCount = 0
local array = {}