Fix a memory leak by calling free(extra->data) in
lzma_extra_free().
This commit is contained in:
parent
22ba3b0b50
commit
c99037ea10
|
@ -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 New Issue