mirror of
https://github.com/kspalaiologos/bzip3.git
synced 2026-10-23 14:48:53 +03:00
Fix memory leak by compression_buf in bz3_decompress() (#159)
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
This commit is contained in:
committed by
GitHub
parent
25b89fcff4
commit
893f02f6d3
@@ -991,6 +991,8 @@ BZIP3_API int bz3_decompress(const uint8_t * in, uint8_t * out, size_t in_size,
|
||||
}
|
||||
|
||||
bz3_free(state);
|
||||
free(compression_buf);
|
||||
|
||||
return BZ3_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user