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
1 changed files with 1 additions and 0 deletions

View File

@ -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;
} }