1
0
Fork 0

fix nullptr dereference

This commit is contained in:
jsteemann 2016-12-27 18:42:40 +01:00
parent a7616ed0f6
commit 035305ff69
1 changed files with 1 additions and 1 deletions

View File

@ -464,7 +464,7 @@ IndexIterator* PrimaryIndex::iteratorForSlice(
// lease builder, but immediately pass it to the unique_ptr so we don't leak
TransactionBuilderLeaser builder(trx);
std::unique_ptr<VPackBuilder> keys(builder.steal());
builder->add(searchValues);
keys->add(searchValues);
return new PrimaryIndexIterator(_collection, trx, mmdr, this, keys);
}