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

Function gm_unlink

src/store/graph_mem.c:130–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130static void gm_unlink(cbm_graph_mem_t *g) {
131 for (cbm_graph_mem_t **p = &g_layers; *p; p = &(*p)->next) {
132 if (*p == g) {
133 *p = g->next;
134 g->next = NULL;
135 g->detached = true;
136 return;
137 }
138 }
139}
140
141/* Unlink a layer; free it now when nobody holds it, else at its last release. */
142static void gm_retire(cbm_graph_mem_t *g) {

Callers 1

gm_retireFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected