8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 10:00:38 +01:00

Fixed CORE-6331 - Memory leak with some statements and expressions.

This commit is contained in:
Adriano dos Santos Fernandes 2020-06-11 12:20:00 -03:00
parent c57c4fc1c2
commit 98054a2093
2 changed files with 4 additions and 4 deletions

View File

@ -916,7 +916,7 @@ public:
AggNode* newInstance(MemoryPool& pool) const
{
return FB_NEW T(pool);
return FB_NEW_POOL(pool) T(pool);
}
};
@ -932,7 +932,7 @@ public:
AggNode* newInstance(MemoryPool& pool) const
{
return FB_NEW T(pool, type);
return FB_NEW_POOL(pool) T(pool, type);
}
public:

View File

@ -7182,7 +7182,7 @@ StmtNode* StoreNode::dsqlPass(DsqlCompilerScratch* dsqlScratch)
if (!needSavePoint || nodeIs<SavepointEncloseNode>(node))
return node;
return FB_NEW SavepointEncloseNode(dsqlScratch->getPool(), node);
return FB_NEW_POOL(dsqlScratch->getPool()) SavepointEncloseNode(dsqlScratch->getPool(), node);
}
string StoreNode::internalPrint(NodePrinter& printer) const
@ -8888,7 +8888,7 @@ StmtNode* UpdateOrInsertNode::dsqlPass(DsqlCompilerScratch* dsqlScratch)
if (!needSavePoint || nodeIs<SavepointEncloseNode>(ret))
return ret;
return FB_NEW SavepointEncloseNode(dsqlScratch->getPool(), ret);
return FB_NEW_POOL(dsqlScratch->getPool()) SavepointEncloseNode(dsqlScratch->getPool(), ret);
}
string UpdateOrInsertNode::internalPrint(NodePrinter& printer) const