mirror of
https://git.tukaani.org/xz.git
synced 2025-02-23 00:48:11 +00:00
liblzma: Fix invalid free() in the threaded encoder.
It was triggered if initialization failed e.g. due to running out of memory. Thanks to Arkadiusz Miskiewicz.
This commit is contained in:
parent
6b620a0f08
commit
ab50ae3ef4
@ -101,7 +101,11 @@ extern void
|
||||
lzma_outq_end(lzma_outq *outq, lzma_allocator *allocator)
|
||||
{
|
||||
lzma_free(outq->bufs, allocator);
|
||||
outq->bufs = NULL;
|
||||
|
||||
lzma_free(outq->bufs_mem, allocator);
|
||||
outq->bufs_mem = NULL;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user