mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 07:23:03 +01:00
Fixed CORE-1840.
This commit is contained in:
parent
3b4eeb7192
commit
71fb15593c
@ -130,7 +130,7 @@ void DYN_ddl(Attachment* attachment, jrd_tra* transaction, USHORT length,
|
||||
|
||||
// Create a pool for DYN to operate in. It will be released when
|
||||
// the routine exits.
|
||||
MemoryPool* tempPool = dbb->createPool();
|
||||
MemoryPool* const tempPool = dbb->createPool();
|
||||
Jrd::ContextPoolHolder context(tdbb, tempPool);
|
||||
|
||||
try {
|
||||
@ -160,8 +160,12 @@ void DYN_ddl(Attachment* attachment, jrd_tra* transaction, USHORT length,
|
||||
}
|
||||
}
|
||||
|
||||
dbb->deletePool(tempPool);
|
||||
|
||||
ERR_punt();
|
||||
}
|
||||
|
||||
dbb->deletePool(tempPool);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user