| 249 | } |
| 250 | |
| 251 | static 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 |
no outgoing calls
no test coverage detected