MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / free_alias_map

Function free_alias_map

src/pipeline/path_alias.c:292–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290/* ── Public API ────────────────────────────────────────────────── */
291
292static 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
307void cbm_path_alias_collection_free(cbm_path_alias_collection_t *coll) {
308 if (!coll) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected