diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp index 2c607fa8..2cef68a8 100644 --- a/src/cryptonote_core/tx_pool.cpp +++ b/src/cryptonote_core/tx_pool.cpp @@ -315,7 +315,8 @@ namespace cryptonote { m_txs_by_fee.erase(sorted_it); } - m_transactions.erase(it++); + auto pit = it++; + m_transactions.erase(pit); }else ++it; }