MCPcopy Create free account
hub / github.com/F-Stack/f-stack / zstdio_fini

Function zstdio_fini

freebsd/kern/subr_compressor.c:473–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471}
472
473static void
474zstdio_fini(void *stream)
475{
476 struct zstdio_stream *s;
477
478 s = stream;
479 if (s->zst_static_wkspc != NULL)
480 free(s->zst_static_wkspc, M_COMPRESS);
481 else
482 ZSTD_freeCCtx(s->zst_stream);
483 free(s->zst_buffer, M_COMPRESS);
484 free(s, M_COMPRESS);
485}
486
487static struct compressor_methods zstd_methods = {
488 .format = COMPRESS_ZSTD,

Callers

nothing calls this directly

Calls 2

freeFunction · 0.70
ZSTD_freeCCtxFunction · 0.50

Tested by

no test coverage detected