We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2189811 commit ea82ec2Copy full SHA for ea82ec2
lib/std/compress/zstandard/decompress.zig
@@ -266,6 +266,7 @@ pub fn decodeZstandardFrameAlloc(
266
window_size_max: usize,
267
) (error{OutOfMemory} || FrameContext.Error || FrameError)!DecodeResult {
268
var result = std.ArrayList(u8).init(allocator);
269
+ errdefer result.deinit();
270
assert(readInt(u32, src[0..4]) == frame.Zstandard.magic_number);
271
var consumed_count: usize = 4;
272
0 commit comments