From: Mike Pall Date: Thu, 14 Nov 2024 16:13:58 +0000 (+0100) Subject: Always close profiler output file. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fca66335d131669cf017420af6963a7565babb58;p=thirdparty%2FLuaJIT.git Always close profiler output file. Reported by Guilherme Batalheiro. #1304 --- diff --git a/src/jit/p.lua b/src/jit/p.lua index 36f836c5..ef2ee82f 100644 --- a/src/jit/p.lua +++ b/src/jit/p.lua @@ -227,9 +227,7 @@ local function prof_finish() local samples = prof_samples if samples == 0 then if prof_raw ~= true then out:write("[No samples collected]\n") end - return - end - if prof_ann then + elseif prof_ann then prof_annotate(prof_count1, samples) else prof_top(prof_count1, prof_count2, samples, "")