8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 03:23:03 +01:00

Fixed CORE-1840.

This commit is contained in:
dimitr 2008-04-16 15:40:49 +00:00
parent 3b4eeb7192
commit 71fb15593c

View File

@ -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);
}