Deep copy an edge (binding owns the strings) */
| 2546 | |
| 2547 | /* Deep copy an edge (binding owns the strings) */ |
| 2548 | static void edge_deep_copy(cbm_edge_t *dst, const cbm_edge_t *src) { |
| 2549 | *dst = *src; |
| 2550 | dst->project = heap_strdup(src->project); |
| 2551 | dst->type = heap_strdup(src->type); |
| 2552 | dst->properties_json = heap_strdup(src->properties_json); |
| 2553 | } |
| 2554 | |
| 2555 | static void edge_fields_free(cbm_edge_t *e) { |
| 2556 | safe_str_free(&e->project); |
no test coverage detected