Free the heap fields of a standalone relationship pattern. */
| 1034 | |
| 1035 | /* Free the heap fields of a standalone relationship pattern. */ |
| 1036 | static void free_one_rel_pattern(cbm_rel_pattern_t *r) { |
| 1037 | safe_str_free(&r->variable); |
| 1038 | for (int j = 0; j < r->type_count; j++) { |
| 1039 | safe_str_free(&r->types[j]); |
| 1040 | } |
| 1041 | free(r->types); |
| 1042 | safe_str_free(&r->direction); |
| 1043 | memset(r, 0, sizeof(*r)); |
| 1044 | } |
| 1045 | |
| 1046 | /* Parse a bounded EXISTS predicate: EXISTS { (anchor)-[:TYPE]->() } — a |
| 1047 | * single-hop, edge-type-specific existence check anchored on a bound variable |
no test coverage detected