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
test(contract): free node fields in calls_edge_targets helper
Martin Vogel66f2413cd943
diff --git a/tests/test_lang_contract.c b/tests/test_lang_contract.cindex b8138ca72..b71a39279 100644--- a/tests/test_lang_contract.c+++ b/tests/test_lang_contract.c@@ -1217,11 +1217,12 @@ static int calls_edge_targets(cbm_store_t *store, const char *project, const chaif (cbm_store_find_node_by_id(store, edges[i].target_id, &tgt) != CBM_STORE_OK)continue;const char *qn = tgt.qualified_name;- if (!qn || !tgt.label || strcmp(tgt.label, label) != 0)- continue;- size_t ql = strlen(qn);- if (ql >= sl && strcmp(qn + ql - sl, qn_suffix) == 0)- found = 1;+ if (qn && tgt.label && strcmp(tgt.label, label) == 0) {+ size_t ql = strlen(qn);+ if (ql >= sl && strcmp(qn + ql - sl, qn_suffix) == 0)+ found = 1;+ }+ cbm_node_free_fields(&tgt);}cbm_store_free_edges(edges, n);return found;