From fe7e593b24678082578e76d8f918d4544713b5f0 Mon Sep 17 00:00:00 2001 From: Suhas Daftuar Date: Tue, 10 Jan 2017 15:21:21 -0500 Subject: [PATCH] Fix use-after-free in CTxMemPool::removeConflicts() --- src/txmempool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } }