You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Bryan Duxbury (JIRA)" <ji...@apache.org> on 2011/01/26 19:42:43 UTC

[jira] Closed: (THRIFT-1041) TDeserializer holds onto a reference of the array it reads after it is done deserializing

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

Bryan Duxbury closed THRIFT-1041.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 0.7

I ended up committing a slightly different version of this patch, since calling reset(null) was causing NPEs. 

> TDeserializer holds onto a reference of the array it reads after it is done deserializing
> -----------------------------------------------------------------------------------------
>
>                 Key: THRIFT-1041
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1041
>             Project: Thrift
>          Issue Type: Bug
>          Components: Java - Library
>            Reporter: Takashi Yonebayashi
>            Assignee: Bryan Duxbury
>            Priority: Minor
>             Fix For: 0.7
>
>         Attachments: THRIFT-1041.patch
>
>
> Since the TMemoryInputTransport is not reset after the TDeserializer is done reading, this could cause memory problems for applications that expect those arrays to be free for garbage collection later.  

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