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

Function gpf_cleanup

tests/test_grammar_probe_f.c:108–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108static void gpf_cleanup(GpfProj *lp, cbm_store_t *store) {
109 if (store) cbm_store_close(store);
110 if (lp->srv) { cbm_mcp_server_free(lp->srv); lp->srv = NULL; }
111 free(lp->project);
112 lp->project = NULL;
113 th_rmtree(lp->tmpdir);
114 unlink(lp->dbpath);
115 char wal[600], shm[600];
116 snprintf(wal, sizeof(wal), "%s-wal", lp->dbpath);
117 unlink(wal);
118 snprintf(shm, sizeof(shm), "%s-shm", lp->dbpath);
119 unlink(shm);
120}
121
122/* ── Node-count helpers ──────────────────────────────────────────── */
123

Callers 1

gpf_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