Skip to content

Commit bcb7df8

Browse files
Mike Pallligurio
Mike Pall
authored andcommitted
Always close profiler output file.
Reported by Guilherme Batalheiro. (cherry picked from commit fca6633)
1 parent 1ca1736 commit bcb7df8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/jit/p.lua

+1-3
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,7 @@ local function prof_finish()
228228
local samples = prof_samples
229229
if samples == 0 then
230230
if prof_raw ~= true then out:write("[No samples collected]\n") end
231-
return
232-
end
233-
if prof_ann then
231+
elseif prof_ann then
234232
prof_annotate(prof_count1, samples)
235233
else
236234
prof_top(prof_count1, prof_count2, samples, "")

0 commit comments

Comments
 (0)