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

Fixed resource/memory leak which caused some DDL to fail

This commit is contained in:
skidder 2002-09-28 22:37:41 +00:00
parent c5d0cb8984
commit ed109cc6c2

View File

@ -3273,10 +3273,8 @@ static void get_trigger_dependencies( DFW work)
if (relation && !NULL_BLOB(blob_id))
{
JrdMemoryPool tempPool;
old_pool = tdbb->tdbb_default;
tdbb->tdbb_default = &tempPool;
/* Nickolay Samofatov: allocate statement memory pool... */
tdbb->tdbb_default = FB_NEW(*dbb->dbb_permanent) JrdMemoryPool;
MET_get_dependencies(tdbb, relation,
(TEXT*)NULL_PTR,
(CSB)NULL_PTR,
@ -3285,6 +3283,11 @@ static void get_trigger_dependencies( DFW work)
(CSB*)NULL_PTR,
work->dfw_name,
obj_trigger);
if (request)
CMP_release(tdbb, request);
else
delete tdbb->tdbb_default;
tdbb->tdbb_default = old_pool;
}
}