MCPcopy Create free account
hub / github.com/apache/trafficserver / free_plugin_state_t

Function free_plugin_state_t

plugins/regex_revalidate/regex_revalidate.cc:190–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190static void
191free_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
211static invalidate_t *
212copy_invalidate_t(invalidate_t *i)

Callers 1

TSPluginInitFunction · 0.85

Calls 3

free_invalidate_t_listFunction · 0.85
TSfreeFunction · 0.85
TSTextLogObjectDestroyFunction · 0.85

Tested by

no test coverage detected