summaryrefslogtreecommitdiff
path: root/archival/libarchive/bz
diff options
context:
space:
mode:
authorDenys Vlasenko2010-12-30 04:43:35 +0100
committerDenys Vlasenko2010-12-30 04:43:35 +0100
commited9b08d1c1bbccd1bcb2c3e06b0095b6b99dc96c (patch)
treebd9a9b9f6b4ced902e90ec7024ca4c6b4dcd1ec7 /archival/libarchive/bz
parent2753aae0e8728f527bedf103b1207857b7c3e151 (diff)
downloadbusybox-ed9b08d1c1bbccd1bcb2c3e06b0095b6b99dc96c.zip
busybox-ed9b08d1c1bbccd1bcb2c3e06b0095b6b99dc96c.tar.gz
bzip2: plug memory leak on every processed file
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/libarchive/bz')
-rw-r--r--archival/libarchive/bz/bzlib.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/archival/libarchive/bz/bzlib.c b/archival/libarchive/bz/bzlib.c
index b3beeab..5f7db74 100644
--- a/archival/libarchive/bz/bzlib.c
+++ b/archival/libarchive/bz/bzlib.c
@@ -361,7 +361,6 @@ int BZ2_bzCompress(bz_stream *strm, int action)
/*---------------------------------------------------*/
-#if ENABLE_FEATURE_CLEAN_UP
static
void BZ2_bzCompressEnd(bz_stream *strm)
{
@@ -372,9 +371,8 @@ void BZ2_bzCompressEnd(bz_stream *strm)
free(s->arr2);
free(s->ftab);
free(s->crc32table);
- free(strm->state);
+ free(s);
}
-#endif
/*---------------------------------------------------*/