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

Function state_free

src/watcher/watcher.c:938–945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

936}
937
938static void state_free(project_state_t *s) {
939 if (!s) {
940 return;
941 }
942 free(s->project_name);
943 free(s->root_path);
944 free(s);
945}
946
947/* Move a state onto the deferred-free list (caller holds projects_lock).
948 * 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