[ 
https://issues.apache.org/jira/browse/TRANSACTION-31?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lars Michele updated TRANSACTION-31:
------------------------------------

    Attachment: FileResourceManager.java.patch

A patch for the 1.2 branch.

> 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.0, 1.0.1, 1.1, 1.2
>            Reporter: Lars Michele
>         Attachments: FileResourceManager.java.patch
>
>   Original Estimate: 0.08h
>  Remaining Estimate: 0.08h
>
> 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