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

Fixed bug #8089 : AV when attaching database while low of free memory

This commit is contained in:
Vlad Khorsun 2024-04-19 22:27:17 +03:00
parent 66f457e69a
commit 047b059ccc

View File

@ -1278,7 +1278,7 @@ void CCH_flush(thread_db* tdbb, USHORT flush_flag, TraNumber tra_number)
PIO_flush(tdbb, shadow->sdw_file);
BackupManager* bm = dbb->dbb_backup_manager;
if (!bm->isShutDown())
if (bm && !bm->isShutDown())
{
BackupManager::StateReadGuard stateGuard(tdbb);
const int backup_state = bm->getState();