mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
Fix a memory leak by calling free(extra->data) in
lzma_extra_free().
This commit is contained in:
parent
22ba3b0b50
commit
c99037ea10
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ lzma_extra_free(lzma_extra *extra, lzma_allocator *allocator)
|
||||||
{
|
{
|
||||||
while (extra != NULL) {
|
while (extra != NULL) {
|
||||||
lzma_extra *tmp = extra->next;
|
lzma_extra *tmp = extra->next;
|
||||||
|
lzma_free(extra->data, allocator);
|
||||||
lzma_free(extra, allocator);
|
lzma_free(extra, allocator);
|
||||||
extra = tmp;
|
extra = tmp;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue