8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 07: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 committed by Dmitry Yemanov
parent c84e436248
commit ae2c9e8297

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();