| 486 | self_created_structures_ = true; |
| 487 | } |
| 488 | void |
| 489 | reset(TSMBuffer bufp, TSMLoc hdr_loc) |
| 490 | { |
| 491 | if (self_created_structures_) { |
| 492 | TSHandleMLocRelease(hdr_buf_, TS_NULL_MLOC /* no parent */, hdr_loc_); |
| 493 | TSMBufferDestroy(hdr_buf_); |
| 494 | self_created_structures_ = false; |
| 495 | } |
| 496 | hdr_buf_ = bufp; |
| 497 | hdr_loc_ = hdr_loc; |
| 498 | } |
| 499 | ~HeadersState() { reset(nullptr, nullptr); } |
| 500 | }; |
| 501 |
nothing calls this directly
no test coverage detected