Subject Re: [Firebird-Java] Possible memory leak in EncodingFactory ?
Author Roman Rokytskyy

> Encoding_OneByte would have to be changed, probably for the better.
> Buffers are created that would be stepped on in a multithreaded
> environment, and they aren't needed. The method encodeToCharset(String)
> should be doing the work in the result buffer that's created, and
> decodeFromCharset(byte[]) should just create one on the stack.

Sorry for not replying with more precise information, but I remember that
there was an attempt to add caching to the EncodingFactory, but the price
for it was either instable or slow work in multithreaded env. and the fix
was rolled back.

Please check the CVS history for more details.