bzip2: plug memory leak on every processed file

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2010-12-30 04:43:35 +01:00
parent 2753aae0e8
commit ed9b08d1c1
2 changed files with 5 additions and 5 deletions

View File

@ -128,10 +128,12 @@ IF_DESKTOP(long long) int FAST_FUNC compressStream(unpack_info_t *info UNUSED_PA
break;
}
#if ENABLE_FEATURE_CLEAN_UP
/* Can't be conditional on ENABLE_FEATURE_CLEAN_UP -
* we are called repeatedly
*/
BZ2_bzCompressEnd(strm);
free(iobuf);
#endif
return total;
}