mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 02:11:24 +02:00
Merge #9507: Fix use-after-free in CTxMemPool::removeConflicts()
fe7e593
Fix use-after-free in CTxMemPool::removeConflicts() (Suhas Daftuar)
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user