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

Function free_one_rel_pattern

src/cypher/cypher.c:1027–1035  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1025
1026/* Free the heap fields of a standalone relationship pattern. */
1027static void free_one_rel_pattern(cbm_rel_pattern_t *r) {
1028 safe_str_free(&r->variable);
1029 for (int j = 0; j < r->type_count; j++) {
1030 safe_str_free(&r->types[j]);
1031 }
1032 free(r->types);
1033 safe_str_free(&r->direction);
1034 memset(r, 0, sizeof(*r));
1035}
1036
1037/* Parse a bounded EXISTS predicate: EXISTS { (anchor)-[:TYPE]->() } — a
1038 * 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