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

Function ei_cleanup

tests/test_edge_imports.c:225–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225static void ei_cleanup(EILangProj *lp, cbm_store_t *store) {
226 if (store)
227 cbm_store_close(store);
228 if (lp->srv) {
229 cbm_mcp_server_free(lp->srv);
230 lp->srv = NULL;
231 }
232 free(lp->project);
233 lp->project = NULL;
234 th_rmtree(lp->tmpdir);
235 unlink(lp->dbpath);
236 char wal[600], shm[600];
237 snprintf(wal, sizeof(wal), "%s-wal", lp->dbpath);
238 unlink(wal);
239 snprintf(shm, sizeof(shm), "%s-shm", lp->dbpath);
240 unlink(shm);
241}
242
243/* Index `files`, check IMPORTS count >= `floor`. Dumps a diagnostic on
244 * failure so failures are self-diagnosable without re-running manually. */

Callers 6

ei_edge_count_isFunction · 0.85
ei_edge_presentFunction · 0.85
ei_py_external_base_caseFunction · 0.85
ei_php_imports_matchFunction · 0.85

Calls 3

cbm_store_closeFunction · 0.85
cbm_mcp_server_freeFunction · 0.85
th_rmtreeFunction · 0.85

Tested by

no test coverage detected