You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 143ccfa
Browse filesBrowse the repository at this point in the historyBrowse files
fix(ui): allocate the framework-entry flags through the memory core
The framework_entry flag array in cbm_layout_from_nodes was allocated
with calloc and released with free on both exit paths. The
memory-core linter counts raw allocator sites per file and fails when
a file grows: src/ui/layout3d.c went from its baseline of 61 to 64.
The array is owned entirely by this function, so allocation and both
releases move together to the memory core: cbm_calloc and cbm_free
with CBM_MEM_CLASS_OTHER, the same pairing this function already uses
for out_calls. The route lookup's cbm_store_find_node_by_id result
stays released by cbm_node_free_fields, the store API's own pair.
src/ui/layout3d.c is back at 61 raw sites.
The edge loop now sits one level deeper inside the new
framework_entries_valid block, so it is re-indented to the house
clang-format style. src/ui/ is outside the CI clang-format check, so
this was done locally. Ignoring whitespace, the only changes are the
three allocator lines and three re-wrapped lines.
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
0 commit comments