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

Function state_free

src/watcher/watcher.c:251–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251static void state_free(project_state_t *s) {
252 if (!s) {
253 return;
254 }
255 free(s->project_name);
256 free(s->root_path);
257 free(s);
258}
259
260/* Move a state onto the deferred-free list (caller holds projects_lock).
261 * The state may still be referenced by a poll_once snapshot; poll_once

Callers 4

free_state_entryFunction · 0.85
cbm_watcher_freeFunction · 0.85
cbm_watcher_watchFunction · 0.85
cbm_watcher_poll_onceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected