Fix memory errors (#108)

* frees getUint64Tuple tuple iterator

* explicitly create strand in synchronous()
This commit is contained in:
Nathan Nichols
2022-03-01 17:13:28 -06:00
committed by GitHub
parent 4839e0d58b
commit 3db9db9354
6 changed files with 30 additions and 16 deletions

View File

@@ -237,7 +237,7 @@ SubscriptionManager::pubTransaction(
{
ripple::STAmount ownerFunds;
auto fetchFundsSynchronous = [&]() {
Backend::synchronous([&](boost::asio::yield_context yield) {
Backend::synchronous([&](boost::asio::yield_context& yield) {
ownerFunds = RPC::accountFunds(
*backend_, lgrInfo.seq, amount, account, yield);
});