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

Function free_node_strings

src/graph_buffer/graph_buffer.c:406–410  ·  view source on GitHub ↗

Free a single node's owned strings. label and file_path are interned * (pool-owned) — NOT freed here; the pool frees them once in cbm_gbuf_free. */

Source from the content-addressed store, hash-verified

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. */
406static void free_node_strings(cbm_gbuf_node_t *n) {
407 cbm_free(CBM_MEM_CLASS_GBUF_STRING, n->name);
408 cbm_free(CBM_MEM_CLASS_GBUF_STRING, n->qualified_name);
409 cbm_free(CBM_MEM_CLASS_GBUF_STRING, n->properties_json);
410}
411
412/* An edge owns no strings: type AND properties_json are interned (pool-owned;
413 * the pool frees each once in cbm_gbuf_free). Edge properties repeat massively

Callers 1

cbm_gbuf_freeFunction · 0.85

Calls 1

cbm_freeFunction · 0.85

Tested by

no test coverage detected