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

Function es_lang_cleanup

tests/test_edge_structural.c:220–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220static void es_lang_cleanup(ES_LangProj *lp, cbm_store_t *store) {
221 if (store) {
222 cbm_store_close(store);
223 }
224 if (lp->srv) {
225 cbm_mcp_server_free(lp->srv);
226 lp->srv = NULL;
227 }
228 free(lp->project);
229 lp->project = NULL;
230 th_rmtree(lp->tmpdir);
231 unlink(lp->dbpath);
232 char wal[600];
233 char shm[600];
234 snprintf(wal, sizeof(wal), "%s-wal", lp->dbpath);
235 unlink(wal);
236 snprintf(shm, sizeof(shm), "%s-shm", lp->dbpath);
237 unlink(shm);
238}
239
240/* Every graph edge type the pipeline can emit — used in diagnostic dumps. */
241static const char *ES_ALL_EDGE_TYPES[] = {"CALLS",

Callers 3

es_edge_presentFunction · 0.85
es_exact_edge_by_nameFunction · 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