Fixed a file descriptor leak
This commit is contained in:
parent
c47c6572da
commit
034a926bc9
|
@ -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 = {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue