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:
parent
c57c4fc1c2
commit
98054a2093
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user