aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.cpp
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@gmail.com>2017-01-10 15:21:21 -0500
committerSuhas Daftuar <sdaftuar@gmail.com>2017-01-10 15:21:21 -0500
commitfe7e593b24678082578e76d8f918d4544713b5f0 (patch)
tree9837ee5989036f6ef126eabcf1f2c318beb56754 /src/txmempool.cpp
parent07fd147b9f12e9205afd66a624edce357977d615 (diff)
downloadbitcoin-fe7e593b24678082578e76d8f918d4544713b5f0.tar.xz
Fix use-after-free in CTxMemPool::removeConflicts()
Diffstat (limited to 'src/txmempool.cpp')
-rw-r--r--src/txmempool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp
index 4f4540a1fc..373687430b 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);
}
}
}