| 188 | } |
| 189 | |
| 190 | static void |
| 191 | free_plugin_state_t(plugin_state_t *pstate) |
| 192 | { |
| 193 | if (pstate->invalidate_list) { |
| 194 | free_invalidate_t_list(pstate->invalidate_list); |
| 195 | } |
| 196 | if (pstate->config_path) { |
| 197 | TSfree(pstate->config_path); |
| 198 | } |
| 199 | if (pstate->match_header) { |
| 200 | TSfree(pstate->match_header); |
| 201 | } |
| 202 | if (pstate->log) { |
| 203 | TSTextLogObjectDestroy(pstate->log); |
| 204 | } |
| 205 | if (pstate->state_path) { |
| 206 | TSfree(pstate->state_path); |
| 207 | } |
| 208 | TSfree(pstate); |
| 209 | } |
| 210 | |
| 211 | static invalidate_t * |
| 212 | copy_invalidate_t(invalidate_t *i) |
no test coverage detected