X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Ftxdb-bdb.cpp;h=5ce59b5aa41ec2cc246926dbc73cf0e7bdcb04cc;hb=f2b467c8d7d761dd47e58ad9ed4d8ede92a24601;hp=bbfb656c36f14c591c4b1ca7f23de1839c84a107;hpb=fe326c477b0b109819653dc2657495f867ff8616;p=novacoin.git 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;