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

Function corpus_release_docs

src/semantic/semantic.c:1396–1401  ·  view source on GitHub ↗

The per-document token id lists exist for the co-occurrence pass only; * released at the end of finalize so the vector phase runs without them * (783k small blocks on the kernel). */

Source from the content-addressed store, hash-verified

1394 * released at the end of finalize so the vector phase runs without them
1395 * (783k small blocks on the kernel). */
1396static void corpus_release_docs(cbm_sem_corpus_t *corpus) {
1397 for (int d = 0; d < corpus->doc_count; d++) {
1398 cbm_free(CBM_MEM_CLASS_SEMANTIC, corpus->doc_token_ids[d]);
1399 corpus->doc_token_ids[d] = NULL;
1400 }
1401}
1402
1403void cbm_sem_corpus_finalize(cbm_sem_corpus_t *corpus) {
1404 if (!corpus || corpus->finalized) {

Callers 1

cbm_sem_corpus_finalizeFunction · 0.85

Calls 1

cbm_freeFunction · 0.85

Tested by

no test coverage detected