Browse Source

Merge #9507: Fix use-after-free in CTxMemPool::removeConflicts()

fe7e593 Fix use-after-free in CTxMemPool::removeConflicts() (Suhas Daftuar)
0.14
Pieter Wuille 8 years ago
parent
commit
05950427d3
No known key found for this signature in database
GPG Key ID: DBA1A67379A1A931
  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