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

Function mkc_cleanup

tests/test_matrix_known_classes.c:115–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115static void mkc_cleanup(MKC_Proj *lp, cbm_store_t *store) {
116 if (store)
117 cbm_store_close(store);
118 if (lp->srv) {
119 cbm_mcp_server_free(lp->srv);
120 lp->srv = NULL;
121 }
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 snprintf(shm, sizeof(shm), "%s-shm", lp->dbpath);
129 unlink(wal);
130 unlink(shm);
131}
132
133static const char *MKC_ALL_EDGE_TYPES[] = {"CALLS", "DEFINES", "DEFINES_METHOD", "IMPORTS",
134 "INHERITS", "IMPLEMENTS", "USAGE", "DECORATES",

Callers 1

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