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

Function free_one_node_pattern

src/cypher/cypher.c:1015–1024  ·  view source on GitHub ↗

Parse a single condition: var.prop OP value | var.prop IS [NOT] NULL | var.prop IN [...] */ Free the heap fields of a standalone node pattern (not owned by a pattern). */

Source from the content-addressed store, hash-verified

1013/* Parse a single condition: var.prop OP value | var.prop IS [NOT] NULL | var.prop IN [...] */
1014/* Free the heap fields of a standalone node pattern (not owned by a pattern). */
1015static void free_one_node_pattern(cbm_node_pattern_t *n) {
1016 safe_str_free(&n->variable);
1017 safe_str_free(&n->label);
1018 for (int j = 0; j < n->prop_count; j++) {
1019 safe_str_free(&n->props[j].key);
1020 safe_str_free(&n->props[j].value);
1021 }
1022 free(n->props);
1023 memset(n, 0, sizeof(*n));
1024}
1025
1026/* Free the heap fields of a standalone relationship pattern. */
1027static void free_one_rel_pattern(cbm_rel_pattern_t *r) {

Callers 1

parse_exists_predicateFunction · 0.85

Calls 1

safe_str_freeFunction · 0.85

Tested by

no test coverage detected