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

Function free_node_contents

src/mcp/mcp.c:3126–3134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3124/* ── Helper: free heap fields of a stack-allocated node ────────── */
3125
3126static void free_node_contents(cbm_node_t *n) {
3127 safe_str_free(&n->project);
3128 safe_str_free(&n->label);
3129 safe_str_free(&n->name);
3130 safe_str_free(&n->qualified_name);
3131 safe_str_free(&n->file_path);
3132 safe_str_free(&n->properties_json);
3133 memset(n, 0, sizeof(*n));
3134}
3135
3136/* ── Helper: read lines [start, end] from a file ─────────────── */
3137

Callers 2

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