Menu

#4 Memory leak in TagWriter.java method writeBitsLossless(...)

open
nobody
5
2005-04-28
2005-04-28
mm
No

TagWriter.writeBitsLossless(...) creates a new
DeflaterOutputStream and a new OutStream each time
it is called but does not properly clean them up.

The fix:

try {
<blah blah>
}
finally
{
zipOut.flush();
zipOut.close();
deflater.close();
}

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.