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

Function cbm_mcp_server_free

src/mcp/mcp.c:1751–1766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1749}
1750
1751void cbm_mcp_server_free(cbm_mcp_server_t *srv) {
1752 if (!srv) {
1753 return;
1754 }
1755 if (srv->autoindex_active) {
1756 cbm_thread_join(&srv->autoindex_tid);
1757 }
1758 if (srv->owns_store && srv->store) {
1759 cbm_store_close(srv->store);
1760 }
1761 free(srv->current_project);
1762 free(srv->allowed_root);
1763 free(srv->active_request_id_str);
1764 cbm_mutex_destroy(&srv->request_scope_mutex);
1765 free(srv);
1766}
1767
1768/* ── Idle store eviction ──────────────────────────────────────── */
1769

Callers 15

run_cliFunction · 0.85
cbm_cmd_hook_augmentFunction · 0.85
cbm_http_server_newFunction · 0.85
cbm_http_server_freeFunction · 0.85
application_session_openFunction · 0.85
test_cli.cFile · 0.85
gpf_cleanupFunction · 0.85
gpg_cleanupFunction · 0.85
es_lang_cleanupFunction · 0.85

Calls 3

cbm_thread_joinFunction · 0.85
cbm_store_closeFunction · 0.85
cbm_mutex_destroyFunction · 0.85

Tested by 15

gpf_cleanupFunction · 0.68
gpg_cleanupFunction · 0.68
es_lang_cleanupFunction · 0.68
gpe_cleanupFunction · 0.68
gpa_cleanupFunction · 0.68
et_cleanupFunction · 0.68
setup_prefilter_serverFunction · 0.68
setup_snippet_serverFunction · 0.68