1
0
Fork 0
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:
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) { 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;
} }