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

Function free_one_rel_pattern

src/cypher/cypher.c:1026–1034  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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