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

Function free_one_rel_pattern

src/cypher/cypher.c:962–970  ·  view source on GitHub ↗

Free the heap fields of a standalone relationship pattern. */

Source from the content-addressed store, hash-verified

960
961/* Free the heap fields of a standalone relationship pattern. */
962static void free_one_rel_pattern(cbm_rel_pattern_t *r) {
963 safe_str_free(&r->variable);
964 for (int j = 0; j < r->type_count; j++) {
965 safe_str_free(&r->types[j]);
966 }
967 free(r->types);
968 safe_str_free(&r->direction);
969 memset(r, 0, sizeof(*r));
970}
971
972/* Parse a bounded EXISTS predicate: EXISTS { (anchor)-[:TYPE]->() } — a
973 * single-hop, edge-type-specific existence check anchored on a bound variable

Callers 1

parse_exists_predicateFunction · 0.85

Calls 1

safe_str_freeFunction · 0.85

Tested by

no test coverage detected