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

Function binding_free

src/cypher/cypher.c:2499–2506  ·  view source on GitHub ↗

Free all deep-copied nodes and edges in a binding */

Source from the content-addressed store, hash-verified

2497
2498/* Free all deep-copied nodes and edges in a binding */
2499static void binding_free(binding_t *b) {
2500 for (int i = 0; i < b->var_count; i++) {
2501 node_fields_free(&b->var_nodes[i]);
2502 }
2503 for (int i = 0; i < b->edge_var_count; i++) {
2504 edge_fields_free(&b->edge_vars[i]);
2505 }
2506}
2507
2508/* Deep-copy a binding (so source and dest own separate string copies) */
2509static void binding_copy(binding_t *dst, const binding_t *src) {

Callers 9

expand_pattern_relsFunction · 0.85
bindings_skip_limitFunction · 0.85
filter_bindings_whereFunction · 0.85
with_apply_distinctFunction · 0.85
execute_with_clauseFunction · 0.85
cross_join_nodesFunction · 0.85
cross_join_with_relsFunction · 0.85
execute_singleFunction · 0.85

Calls 2

node_fields_freeFunction · 0.85
edge_fields_freeFunction · 0.85

Tested by

no test coverage detected