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

Function gpd_cleanup

tests/test_grammar_probe_d.c:112–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

gpd_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