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

Function cbm_store_node_scan_close

src/store/store.c:3638–3650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3636}
3637
3638void cbm_store_node_scan_close(cbm_store_node_scan_t *scan) {
3639 if (!scan) {
3640 return;
3641 }
3642 for (int i = 0; i < NODE_SCAN_STMTS; i++) {
3643 sqlite3_finalize(scan->stmts[i]);
3644 }
3645 sqlite3_value_free(scan->last_file);
3646 cbm_store_free_nodes(scan->eager, scan->eager_count); /* rows not handed out */
3647 cbm_free(CBM_MEM_CLASS_STORE, scan->project);
3648 cbm_free(CBM_MEM_CLASS_STORE, scan->label);
3649 cbm_free(CBM_MEM_CLASS_STORE, scan);
3650}
3651
3652typedef struct {
3653 cbm_store_cancel_fn cancel;

Callers 4

cbm_store_node_scan_openFunction · 0.85
start_source_nextFunction · 0.85
start_source_closeFunction · 0.85
scan_matches_eagerFunction · 0.85

Calls 2

cbm_store_free_nodesFunction · 0.85
cbm_freeFunction · 0.85

Tested by 1

scan_matches_eagerFunction · 0.68