fix: release loaded program storage

This commit is contained in:
Hermes Agent
2026-09-23 04:58:43 +00:00
parent d05465b299
commit 56b72d8ba5
3 changed files with 10 additions and 4 deletions
+4
View File
@@ -53,6 +53,10 @@ def main() -> int:
print("FAIL: expression token allocations still leak")
print(run.stderr, end="", file=sys.stderr)
return 1
if "load_program" in run.stderr:
print("FAIL: loaded program storage still leaks")
print(run.stderr, end="", file=sys.stderr)
return 1
source = (ROOT / "src" / "claro.c").read_text(encoding="utf-8")
if "static void split_args_free(char **parts, int count)" not in source:
print("FAIL: split argument storage has no cleanup boundary")