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

Function cbm_ht_free

src/foundation/hash_table.c:111–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void cbm_ht_free(CBMHashTable *ht) {
112 if (!ht)
113 return;
114 cbm_mem_class_t cls = ht->vt.ctx;
115#if defined(CBM_MEMWASTE) && CBM_MEMWASTE
116 if (cbm_memev_enabled()) {
117 cbm_memev_container(CBM_WORK_CT_HASH_TABLE, ht->waste_site,
118 (uint64_t)cbm_vt_bucket_count(&ht->vt) * HT_SLOT_BYTES,
119 (uint64_t)cbm_vt_size(&ht->vt) * HT_SLOT_BYTES, ht->waste_growths);
120 }
121#endif
122 cbm_vt_cleanup(&ht->vt);
123 cbm_free(cls, ht);
124}
125
126void *cbm_ht_set(CBMHashTable *ht, const char *key, void *value) {
127 if (!ht || !key)

Callers 15

dg_excalidrawFunction · 0.85
dg_buildFunction · 0.85
cbm_doclink_c_scan_scopeFunction · 0.85
cbm_run_kotlin_lsp_crossFunction · 0.85
cbm_sem_corpus_freeFunction · 0.85
cov_dir_ids_freeFunction · 0.85

Calls 3

cbm_memev_enabledFunction · 0.85
cbm_memev_containerFunction · 0.85
cbm_freeFunction · 0.85

Tested by 7

te_coverage_idsFunction · 0.68
cbm_ti_source_freeFunction · 0.68
ti_build_includesFunction · 0.68
cbm_ti_graph_freeFunction · 0.68
ts_headerFunction · 0.68
ts_state_freeFunction · 0.68
te_parse_gapsFunction · 0.68