diff options
| author | Suhas Daftuar <[email protected]> | 2017-01-10 15:21:21 -0500 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2017-01-10 15:21:21 -0500 |
| commit | fe7e593b24678082578e76d8f918d4544713b5f0 (patch) | |
| tree | 9837ee5989036f6ef126eabcf1f2c318beb56754 /src/txmempool.cpp | |
| parent | Merge #9353: Add data() method to CDataStream (and use it) (diff) | |
| download | discoin-fe7e593b24678082578e76d8f918d4544713b5f0.tar.xz discoin-fe7e593b24678082578e76d8f918d4544713b5f0.zip | |
Fix use-after-free in CTxMemPool::removeConflicts()
Diffstat (limited to 'src/txmempool.cpp')
| -rw-r--r-- | src/txmempool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp index 4f4540a1f..373687430 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -581,8 +581,8 @@ void CTxMemPool::removeConflicts(const CTransaction &tx) const CTransaction &txConflict = *it->second; if (txConflict != tx) { - removeRecursive(txConflict); ClearPrioritisation(txConflict.GetHash()); + removeRecursive(txConflict); } } } |