You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "Wenjun Zhu (JIRA)" <ji...@apache.org> on 2018/09/25 01:38:00 UTC

[jira] [Closed] (TRAFODION-3188) the operations on ref count of ComDiagsArea can be improved

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

Wenjun Zhu closed TRAFODION-3188.
---------------------------------
    Resolution: Duplicate

> the operations on ref count of ComDiagsArea can be improved
> -----------------------------------------------------------
>
>                 Key: TRAFODION-3188
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-3188
>             Project: Apache Trafodion
>          Issue Type: Improvement
>          Components: -exe
>    Affects Versions: 2.4
>            Reporter: Wenjun Zhu
>            Assignee: Wenjun Zhu
>            Priority: Major
>             Fix For: 2.4
>
>
> The operations on ref count of ComDiagsArea appears in several places, and have be to consistent. If one is missed, that count would be incorrect, causing memory leak or access to wild pointer.
>  
> So the access pattern can be improved by wrap the operations in a single funcion, like atp_struct::setDiagsArea(), or ComDiagsArea::operator=().



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)