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

Function data_destroy

plugins/compress/compress.cc:202–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202static void
203data_destroy(Data *data)
204{
205 TSReleaseAssert(data);
206
207 // deflateEnd return value ignore is intentional
208 // it would spew log on every client abort
209 deflateEnd(&data->zstrm);
210
211 if (data->downstream_buffer) {
212 TSIOBufferDestroy(data->downstream_buffer);
213 }
214
215// brotlidestory
216#if HAVE_BROTLI_ENCODE_H
217 BrotliEncoderDestroyInstance(data->bstrm.br);
218#endif
219
220 TSfree(data);
221}
222
223static TSReturnCode
224content_encoding_header(TSMBuffer bufp, TSMLoc hdr_loc, const int compression_type, int algorithm)

Callers 1

compress_transformFunction · 0.85

Calls 2

TSIOBufferDestroyFunction · 0.85
TSfreeFunction · 0.85

Tested by

no test coverage detected