8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 07:23:03 +01:00

Fixed CORE-6370 - Memory leak at server, when client select computed field, which used COALESCE or CAST.

This commit is contained in:
Adriano dos Santos Fernandes 2020-07-27 12:41:28 -03:00
parent 60d4cc928b
commit dde597e6ae

View File

@ -2762,7 +2762,7 @@ void CastNode::getDesc(thread_db* tdbb, CompilerScratch* csb, dsc* desc)
ValueExprNode* CastNode::copy(thread_db* tdbb, NodeCopier& copier) const 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->source = copier.copy(tdbb, source);
node->castDesc = castDesc; node->castDesc = castDesc;