diff --git a/src/jrd/pag.cpp b/src/jrd/pag.cpp index 57f026fe17..5fc2643f91 100644 --- a/src/jrd/pag.cpp +++ b/src/jrd/pag.cpp @@ -2443,7 +2443,7 @@ USHORT PageManager::getTempPageSpaceID(thread_db* tdbb) Attachment* att = tdbb->getAttachment(); if (!att->att_temp_pg_lock) { - Lock* lock = FB_NEW_RPT(*dbb->dbb_permanent, sizeof(USHORT)) Lock(); + Lock* lock = FB_NEW_RPT(*dbb->dbb_permanent, sizeof(lock->lck_key.lck_long)) Lock(); lock->lck_type = LCK_page_space; lock->lck_owner_handle = LCK_get_owner_handle(tdbb, lock->lck_type); lock->lck_parent = dbb->dbb_lock;