aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/common/extra.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2008-04-24 20:25:39 +0300
committerLasse Collin <lasse.collin@tukaani.org>2008-04-24 20:25:39 +0300
commitc99037ea10f121cbacf60c37a36c29768ae53447 (patch)
tree5af5c93c464fd79f380134fa0e3599c0720f9521 /src/liblzma/common/extra.c
parentMake unlzma and lzcat symlinks. (diff)
downloadxz-c99037ea10f121cbacf60c37a36c29768ae53447.tar.xz
Fix a memory leak by calling free(extra->data) in
lzma_extra_free().
Diffstat (limited to '')
-rw-r--r--src/liblzma/common/extra.c1
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;
}