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

Function free_node_contents

src/mcp/mcp.c:6796–6804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6794/* ── Helper: free heap fields of a stack-allocated node ────────── */
6795
6796static void free_node_contents(cbm_node_t *n) {
6797 safe_str_free(&n->project);
6798 safe_str_free(&n->label);
6799 safe_str_free(&n->name);
6800 safe_str_free(&n->qualified_name);
6801 safe_str_free(&n->file_path);
6802 safe_str_free(&n->properties_json);
6803 memset(n, 0, sizeof(*n));
6804}
6805
6806/* ── Helper: read lines [start, end] from a file ─────────────── */
6807

Callers 3

arch_node_qnFunction · 0.85
handle_trace_call_pathFunction · 0.85
handle_get_code_snippetFunction · 0.85

Calls 1

safe_str_freeFunction · 0.85

Tested by

no test coverage detected