| 234 | } |
| 235 | |
| 236 | static void |
| 237 | stats_cleanup(TSCont contp, stats_state *my_state) |
| 238 | { |
| 239 | if (my_state->req_buffer) { |
| 240 | TSIOBufferDestroy(my_state->req_buffer); |
| 241 | my_state->req_buffer = nullptr; |
| 242 | } |
| 243 | |
| 244 | if (my_state->resp_buffer) { |
| 245 | TSIOBufferDestroy(my_state->resp_buffer); |
| 246 | my_state->resp_buffer = nullptr; |
| 247 | } |
| 248 | |
| 249 | TSVConnClose(my_state->net_vc); |
| 250 | delete my_state; |
| 251 | TSContDestroy(contp); |
| 252 | } |
| 253 | |
| 254 | static void |
| 255 | stats_process_accept(TSCont contp, stats_state *my_state) |
no test coverage detected