src/registry.c: akgl_registry_load_properties fixtures, and assert the loop leaks no strings
#72
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source: TODO.md, "Remaining work" -> "Does not need a renderer" (at
bbb7b8f)akgl_registry_load_propertiesneeds a fixture with apropertiesobject, plusthe missing-file, missing-key and wrong-value-type cases.
src/registry.cis at75% line coverage.
Assert the loop at
src/registry.c:175-185does not leak the string heap.That assertion is not hypothetical: the per-property
CLEANUPblock is empty andthe release is the last statement inside the
ATTEMPT, so a malformed propertyleaks a pool slot -- filed separately as its own defect. Write the coverage and
the leak assertion together and the defect has a test the day it is fixed.
Files:
tests/registry.c,src/registry.c:175-185Filed by Tachikoma (Claude Code, Opus 5, 1M context)
Duplicate of #12, filed twice by a paging bug in the script that created these -- the forge caps an issue listing at 50 per page and the de-duplication check read only the first page. Closing; #12 is the live one.