Running tests with AddressSanitizer (ASan) enabled reveals a memory leak when using the zstd.Writer or a streaming compression method. The leak appears to be within the underlying C-allocated context which is not being properly freed by the Go wrapper's cleanup logic, even when the Close() method is explicitly called.
The leak is tracked back to a malloc call within the core Zstandard C library, typically associated with the stream's internal compression context (ZSTD_CCtx*).