Memory Leak in FileResourceManager#InputStreamWrapper
-----------------------------------------------------

                 Key: TRANSACTION-31
                 URL: https://issues.apache.org/jira/browse/TRANSACTION-31
             Project: Commons Transaction
          Issue Type: Bug
    Affects Versions: 1.1, 1.0.1, 1.0, 1.2
            Reporter: Lars Michele


InputStreamWrapper has a memory leak. In a lightweight transaction, the close 
method of the InputStreamWrapper only closes the Inputstream and releases the 
locks of the transaction but a reference is kept in the globalOpenResources 
field of FileResourceManager.

Fix:
When closing the InputStream of a lightweight transaction, also release the 
references in globalOpenResources with context.closeResources().

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to