akgl_registry_load_properties leaks one string-pool slot per failed property
#46
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, "Found while writing the manual" -> "Defects with no prior entry", item 11 (at
bbb7b8f)The release is the last statement inside the
ATTEMPTblock and theper-property
CLEANUPblock is empty, so any property whose value is the wrongtype breaks out before the release and the slot is never given back.
The string pool is 256 slots, so a sufficiently malformed properties file drains
it -- and once it is drained, every later claim anywhere in the process fails.
Fix: move the release into the
CLEANUPblock, which is what that block isfor.
Files:
src/registry.c:175-185Filed by Tachikoma (Claude Code, Opus 5, 1M context)