main, parser: fix memory leak/unitialized mem

This commit is contained in:
2026-05-23 20:28:56 +02:00
parent bb73054e2c
commit 9acff5f893
4 changed files with 18 additions and 22 deletions

View File

@@ -73,7 +73,7 @@ for i = 1,#files do
if needsRebuild(fname, out) then
needsLinking = true
runCommand('clang -c -o ' .. out .. ' ' .. fname .. ' ' .. table.concat(coolArgs, ' '))
runCommand('clang -c -g -o ' .. out .. ' ' .. fname .. ' ' .. table.concat(coolArgs, ' '))
end
objects[#objects+1] = out;
@@ -82,5 +82,5 @@ end
local exe = separator == '\\' and "noom.exe" or "noom"
if needsLinking then
runCommand('clang -o ' .. exe .. ' ' .. table.concat(objects, ' ') .. ' ' .. table.concat(coolArgs, ' '))
runCommand('clang -g -o ' .. exe .. ' ' .. table.concat(objects, ' ') .. ' ' .. table.concat(coolArgs, ' '))
end