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

Function gpa_cleanup

tests/test_grammar_probe_a.c:114–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114static void gpa_cleanup(GpaProj *lp, cbm_store_t *store) {
115 if (store) cbm_store_close(store);
116 if (lp->srv) { cbm_mcp_server_free(lp->srv); lp->srv = NULL; }
117 free(lp->project);
118 lp->project = NULL;
119 th_rmtree(lp->tmpdir);
120 unlink(lp->dbpath);
121 char wal[600], shm[600];
122 snprintf(wal, sizeof(wal), "%s-wal", lp->dbpath);
123 unlink(wal);
124 snprintf(shm, sizeof(shm), "%s-shm", lp->dbpath);
125 unlink(shm);
126}
127
128/* ── Node-count helpers ─────────────────────────────────────────── */
129

Callers 1

gpa_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