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

@@ -252,8 +252,9 @@ BackendInterface::fetchLedgerPage(
std::vector<ripple::uint256> keys;
while (keys.size() < limit)
{
ripple::uint256 const& curCursor =
keys.size() ? keys.back() : cursor ? *cursor : firstKey;
ripple::uint256 const& curCursor = keys.size() ? keys.back()
: cursor ? *cursor
: firstKey;
auto succ = fetchSuccessorKey(curCursor, ledgerSequence, yield);
if (!succ)