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

Fixed bug #8283 : Assert in ~thread_db() due to not released page buffer

This commit is contained in:
Vlad Khorsun 2024-10-14 17:18:17 +03:00
parent 9b1e09c1a3
commit 0c7bfb0022

View File

@ -822,14 +822,16 @@ void BTR_all(thread_db* tdbb, jrd_rel* relation, IndexDescList& idxList, Relatio
if (!root)
return;
Cleanup release_root([&] {
CCH_RELEASE(tdbb, &window);
});
for (USHORT i = 0; i < root->irt_count; i++)
{
index_desc idx;
if (BTR_description(tdbb, relation, root, &idx, i))
idxList.add(idx);
}
CCH_RELEASE(tdbb, &window);
}