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

Function free_intern_entry

src/graph_buffer/graph_buffer.c:398–402  ·  view source on GitHub ↗

Free one intern-pool entry: key == value == the single owned string copy * that nodes/edges borrowed for label/file_path/type. */

Source from the content-addressed store, hash-verified

396/* Free one intern-pool entry: key == value == the single owned string copy
397 * that nodes/edges borrowed for label/file_path/type. */
398static void free_intern_entry(const char *key, void *value, void *ud) {
399 (void)value;
400 (void)ud;
401 cbm_free(CBM_MEM_CLASS_GBUF_STRING, (void *)key);
402}
403
404/* Free a single node's owned strings. label and file_path are interned
405 * (pool-owned) — NOT freed here; the pool frees them once in cbm_gbuf_free. */

Callers

nothing calls this directly

Calls 1

cbm_freeFunction · 0.85

Tested by

no test coverage detected