diff --git a/src/jit/p.lua b/src/jit/p.lua index c0ad6c0e..c9ec1d8b 100644 --- a/src/jit/p.lua +++ b/src/jit/p.lua @@ -238,6 +238,7 @@ local function prof_finish() prof_count1 = nil prof_count2 = nil prof_ud = nil + if out ~= stdout then out:close() end end end