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

Function why_cache_free

src/ui/atlas_why.c:108–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108static void why_cache_free(why_cache_t *cache) {
109 for (int i = 0; i < cache->count; i++) {
110 cbm_free(CBM_MEM_CLASS_OTHER, cache->files[i].file_path);
111 cbm_free(CBM_MEM_CLASS_OTHER, cache->files[i].source);
112 if (cache->files[i].result)
113 cbm_free_result(cache->files[i].result);
114 }
115 cache->count = 0;
116}
117
118/* ── Guard extraction ───────────────────────────────────────────── */
119

Callers 2

cbm_atlas_why_jsonFunction · 0.85

Calls 2

cbm_freeFunction · 0.85
cbm_free_resultFunction · 0.85

Tested by

no test coverage detected