Fix a memory leak by calling free(extra->data) in

lzma_extra_free().
This commit is contained in:
Lasse Collin 2008-04-24 20:25:39 +03:00
parent 22ba3b0b50
commit c99037ea10

View File

@ -25,6 +25,7 @@ lzma_extra_free(lzma_extra *extra, lzma_allocator *allocator)
{
while (extra != NULL) {
lzma_extra *tmp = extra->next;
lzma_free(extra->data, allocator);
lzma_free(extra, allocator);
extra = tmp;
}