add comment explaining is_allocated.
This commit is contained in:
parent
f8fccb8eaf
commit
9d54277db1
|
@ -3438,7 +3438,8 @@ cblock_to_jsblock(const CBlock& cblock, CBlockIndex* cblock_index, Local<Object>
|
|||
std::string strHex = HexStr(ssBlock.begin(), ssBlock.end());
|
||||
jsblock->Set(NanNew<String>("hex"), NanNew<String>(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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue