Parse a single condition: var.prop OP value | var.prop IS [NOT] NULL | var.prop IN [...] */ Free the heap fields of a standalone node pattern (not owned by a pattern). */
| 948 | /* Parse a single condition: var.prop OP value | var.prop IS [NOT] NULL | var.prop IN [...] */ |
| 949 | /* Free the heap fields of a standalone node pattern (not owned by a pattern). */ |
| 950 | static void free_one_node_pattern(cbm_node_pattern_t *n) { |
| 951 | safe_str_free(&n->variable); |
| 952 | safe_str_free(&n->label); |
| 953 | for (int j = 0; j < n->prop_count; j++) { |
| 954 | safe_str_free(&n->props[j].key); |
| 955 | safe_str_free(&n->props[j].value); |
| 956 | } |
| 957 | free(n->props); |
| 958 | memset(n, 0, sizeof(*n)); |
| 959 | } |
| 960 | |
| 961 | /* Free the heap fields of a standalone relationship pattern. */ |
| 962 | static void free_one_rel_pattern(cbm_rel_pattern_t *r) { |
no test coverage detected