8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 01:23:03 +01:00
This commit is contained in:
Adriano dos Santos Fernandes 2017-11-26 18:39:49 -02:00
parent 9e36829cb4
commit e188d73dac

View File

@ -1487,10 +1487,7 @@ static dsql_req* prepareStatement(thread_db* tdbb, dsql_dbb* database, jrd_tra*
} }
else else
{ {
if (scratchPool)
database->deletePool(scratchPool); database->deletePool(scratchPool);
if (statementPool)
database->deletePool(statementPool); database->deletePool(statementPool);
} }
@ -1664,8 +1661,6 @@ 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());
if (request->liveScratchPool)
request->req_dbb->deletePool(request->liveScratchPool); request->req_dbb->deletePool(request->liveScratchPool);
} }
} }