Github user zellerh commented on a diff in the pull request:

    
https://github.com/apache/incubator-trafodion/pull/1113#discussion_r120693437
  
    --- Diff: core/sql/optimizer/ControlDB.cpp ---
    @@ -108,7 +108,12 @@ ControlDB::~ControlDB()
     
     void ControlDB::setRequiredShape(ControlQueryShape *shape)
     {
    -  delete requiredShape_;
    +  if (requiredShape_)
    +    {
    +      delete requiredShape_->getShape();
    +      delete requiredShape_;
    --- End diff --
    
    @selvaganesang can you explain this more? When I look at the definition of 
NADELETE, it explicitly says that NADELETE is **not** meant for NABasicObjects, 
and we are dealing with NABasicObjects here. Is it that you don't trust the 
method in which we put the heap pointer into NABasicObjects?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to