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/08/20 11:36:00 UTC

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

Wenjun Zhu created TRAFODION-3188:
-------------------------------------

             Summary: 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
             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)