Skip to content

Commit

Permalink
Fixed CORE-6370 - Memory leak at server, when client select computed …
Browse files Browse the repository at this point in the history
…field, which used COALESCE or CAST.
  • Loading branch information
asfernandes committed Jul 27, 2020
1 parent 60d4cc9 commit dde597e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dsql/ExprNodes.cpp
Expand Up @@ -2762,7 +2762,7 @@ void CastNode::getDesc(thread_db* tdbb, CompilerScratch* csb, dsc* desc)

ValueExprNode* CastNode::copy(thread_db* tdbb, NodeCopier& copier) const
{
CastNode* node = FB_NEW_POOL(getPool()) CastNode(getPool());
CastNode* node = FB_NEW_POOL(*tdbb->getDefaultPool()) CastNode(*tdbb->getDefaultPool());

node->source = copier.copy(tdbb, source);
node->castDesc = castDesc;
Expand Down

0 comments on commit dde597e

Please sign in to comment.