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

Function state_free

src/watcher/watcher.c:717–724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

715}
716
717static void state_free(project_state_t *s) {
718 if (!s) {
719 return;
720 }
721 free(s->project_name);
722 free(s->root_path);
723 free(s);
724}
725
726/* Move a state onto the deferred-free list (caller holds projects_lock).
727 * The state may still be referenced by a poll_once snapshot; poll_once

Callers 5

state_newFunction · 0.85
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