Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
chore(lint): share one free() between the cross-repo failure returns
Martin Vogelb7bcb15c2197
diff --git a/src/mcp/mcp.c b/src/mcp/mcp.cindex 7acc40150..3b3f2806c 100644--- a/src/mcp/mcp.c+++ b/src/mcp/mcp.c@@ -9921,19 +9921,17 @@ static char *handle_cross_repo_mode(cbm_mcp_server_t *srv, const char *repo_pathfree(lease_keys);yyjson_doc_free(jdoc);- if (result.no_targets) {+ if (result.no_targets || result.failed) {free(project);return cbm_mcp_text_result(- "cross-repo-intelligence resolved zero target projects: no indexed project other "- "than the source matched target_projects. Index the other service first (run "- "list_projects to see what is indexed); existing cross-repo edges were left unchanged.",+ result.no_targets+ ? "cross-repo-intelligence resolved zero target projects: no indexed project "+ "other than the source matched target_projects. Index the other service first "+ "(run list_projects to see what is indexed); existing cross-repo edges were "+ "left unchanged."+ : "cross-repo source or target project is missing, invalid, or not indexed",true);}- if (result.failed) {- free(project);- return cbm_mcp_text_result(- "cross-repo source or target project is missing, invalid, or not indexed", true);- }int total = result.http_edges + result.async_edges + result.channel_edges + result.grpc_edges +result.graphql_edges + result.trpc_edges;