diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index a0dad6f6..fea7a4b3 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -3438,7 +3438,8 @@ cblock_to_jsblock(const CBlock& cblock, CBlockIndex* cblock_index, Local std::string strHex = HexStr(ssBlock.begin(), ssBlock.end()); jsblock->Set(NanNew("hex"), NanNew(strHex)); - // Freed up elsewhere: + // Was it allocated in find_new_block_index(), or did it already exist? + // (race condition here) if (is_allocated) { delete cblock_index; }