Skip to content

Commit 421743d

Browse files
committed
Fixed bug #8283 : Assert in ~thread_db() due to not released page buffer
1 parent ff1f47d commit 421743d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/jrd/btr.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -822,14 +822,16 @@ void BTR_all(thread_db* tdbb, jrd_rel* relation, IndexDescList& idxList, Relatio
822822
if (!root)
823823
return;
824824

825+
Cleanup release_root([&] {
826+
CCH_RELEASE(tdbb, &window);
827+
});
828+
825829
for (USHORT i = 0; i < root->irt_count; i++)
826830
{
827831
index_desc idx;
828832
if (BTR_description(tdbb, relation, root, &idx, i))
829833
idxList.add(idx);
830834
}
831-
832-
CCH_RELEASE(tdbb, &window);
833835
}
834836

835837

0 commit comments

Comments
 (0)