diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-02-15 10:55:40 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-15 10:55:40 -0800 |
| commit | 57d6f789de1d5fed5006aa3cefeb5b005bbdf6d6 (patch) | |
| tree | 5bf9efbcd7ad173d714bd549bae90af66761fb7b /lib/std/debug.zig | |
| parent | 7204eccf5cbf32977b779181de871559b478511d (diff) | |
| parent | 99cb201438e9458547082b35e1dd7c7c46c8c1bd (diff) | |
| download | zig-57d6f789de1d5fed5006aa3cefeb5b005bbdf6d6.tar.gz zig-57d6f789de1d5fed5006aa3cefeb5b005bbdf6d6.zip | |
Merge pull request #18923 from ianic/add_flate
add deflate implemented from first principles
Diffstat (limited to 'lib/std/debug.zig')
| -rw-r--r-- | lib/std/debug.zig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig index 601a949ecf..3b9e46be92 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -1212,8 +1212,7 @@ pub fn readElfDebugInfo( const chdr = section_reader.readStruct(elf.Chdr) catch continue; if (chdr.ch_type != .ZLIB) continue; - var zlib_stream = std.compress.zlib.decompressStream(allocator, section_stream.reader()) catch continue; - defer zlib_stream.deinit(); + var zlib_stream = std.compress.zlib.decompressor(section_stream.reader()); const decompressed_section = try allocator.alloc(u8, chdr.ch_size); errdefer allocator.free(decompressed_section); |
