| 936 | } |
| 937 | |
| 938 | static 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 |
no outgoing calls
no test coverage detected