| 471 | } |
| 472 | |
| 473 | static void |
| 474 | zstdio_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 | |
| 487 | static struct compressor_methods zstd_methods = { |
| 488 | .format = COMPRESS_ZSTD, |
nothing calls this directly
no test coverage detected