Free all deep-copied nodes and edges in a binding */
| 2497 | |
| 2498 | /* Free all deep-copied nodes and edges in a binding */ |
| 2499 | static void binding_free(binding_t *b) { |
| 2500 | for (int i = 0; i < b->var_count; i++) { |
| 2501 | node_fields_free(&b->var_nodes[i]); |
| 2502 | } |
| 2503 | for (int i = 0; i < b->edge_var_count; i++) { |
| 2504 | edge_fields_free(&b->edge_vars[i]); |
| 2505 | } |
| 2506 | } |
| 2507 | |
| 2508 | /* Deep-copy a binding (so source and dest own separate string copies) */ |
| 2509 | static void binding_copy(binding_t *dst, const binding_t *src) { |
no test coverage detected