Browse Source

Fix use-after-free in CTxMemPool::removeConflicts()

0.14
Suhas Daftuar 8 years ago
parent
commit
fe7e593b24
  1. 2
      src/txmempool.cpp

2
src/txmempool.cpp

@ -581,8 +581,8 @@ void CTxMemPool::removeConflicts(const CTransaction &tx)
const CTransaction &txConflict = *it->second; const CTransaction &txConflict = *it->second;
if (txConflict != tx) if (txConflict != tx)
{ {
removeRecursive(txConflict);
ClearPrioritisation(txConflict.GetHash()); ClearPrioritisation(txConflict.GetHash());
removeRecursive(txConflict);
} }
} }
} }

Loading…
Cancel
Save