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

Function pb_free

internal/cbm/sqlite_writer.c:563–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

561}
562
563static void pb_free(PageBuilder *pb) {
564 if (pb->leaves) {
565 for (int i = 0; i < pb->leaf_count; i++) {
566 free(pb->leaves[i].sep_cell);
567 }
568 free(pb->leaves);
569 }
570 free(pb->cell_buf);
571 pb->cell_buf = NULL;
572 pb->cell_cap = 0;
573}
574
575static uint8_t *pb_cell_scratch(PageBuilder *pb, int len) {
576 if (pb->cell_cap < len) {

Callers 4

pb_finalize_tableFunction · 0.85
write_index_btreeFunction · 0.85
write_one_tableFunction · 0.85
cbm_writer_finalizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected