Skip to content

Commit

Permalink
add missing xz_dec_end
Browse files Browse the repository at this point in the history
  • Loading branch information
yujincheng08 authored and topjohnwu committed Apr 30, 2024
1 parent 33b7b8b commit 4dc1c59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions native/src/init/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ bool unxz(out_stream &strm, rust::Slice<const uint8_t> bytes) {
xz_crc32_init();
size_t size = bytes.size();
struct xz_dec *dec = xz_dec_init(XZ_DYNALLOC, 1 << 26);
run_finally finally([&] { xz_dec_end(dec); });
struct xz_buf b = {
.in = bytes.data(),
.in_pos = 0,
Expand Down

0 comments on commit 4dc1c59

Please sign in to comment.