mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 21:23:03 +01:00
Misc.
This commit is contained in:
parent
9e36829cb4
commit
e188d73dac
@ -1487,11 +1487,8 @@ static dsql_req* prepareStatement(thread_db* tdbb, dsql_dbb* database, jrd_tra*
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (scratchPool)
|
database->deletePool(scratchPool);
|
||||||
database->deletePool(scratchPool);
|
database->deletePool(statementPool);
|
||||||
|
|
||||||
if (statementPool)
|
|
||||||
database->deletePool(statementPool);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
throw;
|
throw;
|
||||||
@ -1664,9 +1661,7 @@ void dsql_req::destroy(thread_db* tdbb, dsql_req* request, bool drop)
|
|||||||
if (drop)
|
if (drop)
|
||||||
{
|
{
|
||||||
request->req_dbb->deletePool(&request->getPool());
|
request->req_dbb->deletePool(&request->getPool());
|
||||||
|
request->req_dbb->deletePool(request->liveScratchPool);
|
||||||
if (request->liveScratchPool)
|
|
||||||
request->req_dbb->deletePool(request->liveScratchPool);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user