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

Function free_one_node_pattern

src/cypher/cypher.c:950–959  ·  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

948/* Parse a single condition: var.prop OP value | var.prop IS [NOT] NULL | var.prop IN [...] */
949/* Free the heap fields of a standalone node pattern (not owned by a pattern). */
950static void free_one_node_pattern(cbm_node_pattern_t *n) {
951 safe_str_free(&n->variable);
952 safe_str_free(&n->label);
953 for (int j = 0; j < n->prop_count; j++) {
954 safe_str_free(&n->props[j].key);
955 safe_str_free(&n->props[j].value);
956 }
957 free(n->props);
958 memset(n, 0, sizeof(*n));
959}
960
961/* Free the heap fields of a standalone relationship pattern. */
962static 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