XADMaster icon indicating copy to clipboard operation
XADMaster copied to clipboard

Fix a major memory leak in CSBzip2Handle

Open altimac opened this issue 3 years ago • 0 comments

while using XADMaster, I noticed huge memory usage for very tiny files (uncompressing a ~100 bytes bizp2 file leak about 3,5MB of memory!). I started by adding a unit test to prove that, and it effectively show a major leak in Instruments.

Then I fixed it pretty easily. Please accept this quite short PR

Here is attached a screenshot showing the leak after about 1000 tiny files uncompression.

Screenshot 2022-02-01 at 16 51 43 .

altimac avatar Feb 04 '22 12:02 altimac