mirror of https://git.tukaani.org/xz.git
Fix a memory leak in the Subblock encoder.
This commit is contained in:
parent
99e12af4e2
commit
980f65a9a1
|
@ -916,6 +916,7 @@ subblock_encoder_end(lzma_coder *coder, lzma_allocator *allocator)
|
||||||
lzma_next_coder_end(&coder->subfilter.subcoder, allocator);
|
lzma_next_coder_end(&coder->subfilter.subcoder, allocator);
|
||||||
lzma_free(coder->subblock.data, allocator);
|
lzma_free(coder->subblock.data, allocator);
|
||||||
lzma_free(coder->subfilter.flags, allocator);
|
lzma_free(coder->subfilter.flags, allocator);
|
||||||
|
lzma_free(coder, allocator);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue