X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Ftxdb-bdb.cpp;h=5ce59b5aa41ec2cc246926dbc73cf0e7bdcb04cc;hp=bbfb656c36f14c591c4b1ca7f23de1839c84a107;hb=31e9cb26642187e571f178ddcfa268ce7c4e56cc;hpb=8bad3792d398953a742ddba82a86034130c77509 diff --git a/src/txdb-bdb.cpp b/src/txdb-bdb.cpp index bbfb656..5ce59b5 100644 --- a/src/txdb-bdb.cpp +++ b/src/txdb-bdb.cpp @@ -160,7 +160,7 @@ CBlockIndex static * InsertBlockIndex(uint256 hash) return (*mi).second; // Create new - CBlockIndex* pindexNew = new CBlockIndex(); + CBlockIndex* pindexNew = new(nothrow) CBlockIndex(); if (!pindexNew) throw runtime_error("LoadBlockIndex() : new CBlockIndex failed"); mi = mapBlockIndex.insert(make_pair(hash, pindexNew)).first;