From ed9b08d1c1bbccd1bcb2c3e06b0095b6b99dc96c Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 30 Dec 2010 04:43:35 +0100 Subject: bzip2: plug memory leak on every processed file Signed-off-by: Denys Vlasenko --- archival/libarchive/bz/bzlib.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'archival/libarchive/bz') 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 /*---------------------------------------------------*/ -- cgit v1.1