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

Function gpe_cleanup

tests/test_grammar_probe_e.c:119–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119static void gpe_cleanup(GpeProj *lp, cbm_store_t *store) {
120 if (store) cbm_store_close(store);
121 if (lp->srv) { cbm_mcp_server_free(lp->srv); lp->srv = NULL; }
122 free(lp->project);
123 lp->project = NULL;
124 th_rmtree(lp->tmpdir);
125 unlink(lp->dbpath);
126 char wal[600], shm[600];
127 snprintf(wal, sizeof(wal), "%s-wal", lp->dbpath);
128 unlink(wal);
129 snprintf(shm, sizeof(shm), "%s-shm", lp->dbpath);
130 unlink(shm);
131}
132
133/* ── Node-count helpers ─────────────────────────────────────────── */
134

Callers 1

gpe_metrics_filesFunction · 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