MCPcopy Create free account
hub / github.com/apache/trafficserver / ~Request

Method ~Request

src/tscpp/api/Request.cc:190–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190Request::~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}

Callers

nothing calls this directly

Calls 2

TSHandleMLocReleaseFunction · 0.85
TSMBufferDestroyFunction · 0.85

Tested by

no test coverage detected