Free the heap fields of a standalone relationship pattern. */
| 960 | |
| 961 | /* Free the heap fields of a standalone relationship pattern. */ |
| 962 | static 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 |
no test coverage detected