diff --git a/arangod/Aql/ExecutionBlock.cpp b/arangod/Aql/ExecutionBlock.cpp index 7ce9374850..34282e2c9f 100644 --- a/arangod/Aql/ExecutionBlock.cpp +++ b/arangod/Aql/ExecutionBlock.cpp @@ -1430,13 +1430,13 @@ int FilterBlock::getOrSkipSome (size_t atLeast, else { // The current block fits into our result and is fresh and // takes them all, so we can just hand it on: + skipped += cur->size(); if (! skipping) { collector.push_back(cur); } else { delete cur; } - skipped += cur->size(); _buffer.pop_front(); _chosen.clear(); _pos = 0;