[ https://issues.apache.org/jira/browse/VFS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13977315#comment-13977315 ]
Ryan Boettcher commented on VFS-142: ------------------------------------ ThreadLocal actually stores it's data in the Thread itself, I don't think your patch covers the whole problem. Even when the ThreadLocal content is set to null it may not remove the reference in the Thread. > Clear ThreadData after all streams are closed, fixes a memory leak > ------------------------------------------------------------------ > > Key: VFS-142 > URL: https://issues.apache.org/jira/browse/VFS-142 > Project: Commons VFS > Issue Type: Bug > Affects Versions: 1.1 > Reporter: Adam Heath > Attachments: fix_ThreadData-clear.patch > > > After all streams are closed in FileContentThreadData, clear the ThreadLocal. -- This message was sent by Atlassian JIRA (v6.2#6252)