| 188 | } |
| 189 | |
| 190 | Request::~Request() |
| 191 | { |
| 192 | if (state_->url_loc_) { |
| 193 | if (state_->destroy_buf_) { |
| 194 | // usually, hdr_loc is the parent of url_loc, but we created this url_loc "directly" in hdr_buf, |
| 195 | // so we use null as parent loc in this case |
| 196 | TSMLoc null_parent_loc = nullptr; |
| 197 | TSHandleMLocRelease(state_->hdr_buf_, null_parent_loc, state_->url_loc_); |
| 198 | TSMBufferDestroy(state_->hdr_buf_); |
| 199 | } |
| 200 | } |
| 201 | delete state_; |
| 202 | } |
nothing calls this directly
no test coverage detected