MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / free_children

Function free_children

internal/cbm/sqlite_writer.c:741–748  ·  view source on GitHub ↗

Free a PageRef array (sep_cell allocations), unless it's the original leaves.

Source from the content-addressed store, hash-verified

739
740// Free a PageRef array (sep_cell allocations), unless it's the original leaves.
741static void free_children(PageRef *children, int child_count, const PageRef *leaves) {
742 if (children != leaves) {
743 for (int j = 0; j < child_count; j++) {
744 free(children[j].sep_cell);
745 }
746 free(children);
747 }
748}
749
750// Take the most recently placed cell back off an interior page (it is always
751// the lowest one in the content area) and zero its bytes, so the page is

Callers 1

pb_build_interiorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected