| 106 | } |
| 107 | |
| 108 | static 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 |
no test coverage detected