diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2008-04-24 20:25:39 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2008-04-24 20:25:39 +0300 |
commit | c99037ea10f121cbacf60c37a36c29768ae53447 (patch) | |
tree | 5af5c93c464fd79f380134fa0e3599c0720f9521 /src | |
parent | Make unlzma and lzcat symlinks. (diff) | |
download | xz-c99037ea10f121cbacf60c37a36c29768ae53447.tar.xz |
Fix a memory leak by calling free(extra->data) in
lzma_extra_free().
Diffstat (limited to 'src')
-rw-r--r-- | src/liblzma/common/extra.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liblzma/common/extra.c b/src/liblzma/common/extra.c index b743a439..c532abb0 100644 --- a/src/liblzma/common/extra.c +++ b/src/liblzma/common/extra.c @@ -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; } |