| 290 | /* ── Public API ────────────────────────────────────────────────── */ |
| 291 | |
| 292 | static void free_alias_map(cbm_path_alias_map_t *map) { |
| 293 | if (!map) { |
| 294 | return; |
| 295 | } |
| 296 | for (int j = 0; j < map->count; j++) { |
| 297 | free(map->entries[j].alias_prefix); |
| 298 | free(map->entries[j].alias_suffix); |
| 299 | free(map->entries[j].target_prefix); |
| 300 | free(map->entries[j].target_suffix); |
| 301 | } |
| 302 | free(map->entries); |
| 303 | free(map->base_url); |
| 304 | free(map); |
| 305 | } |
| 306 | |
| 307 | void cbm_path_alias_collection_free(cbm_path_alias_collection_t *coll) { |
| 308 | if (!coll) { |
no outgoing calls
no test coverage detected