Fixed valgrind errors

This commit is contained in:
Deon Nicholas 2013-06-05 17:25:16 -07:00
parent d8c7c45ea0
commit db1f0cddf3
2 changed files with 3 additions and 3 deletions

View File

@ -3232,7 +3232,7 @@ TEST(DBTest, MultiGetSimple) {
keys[2] = "k3";
keys[3] = "k4";
keys[4] = "k5";
keys[6] = "no_key";
keys[5] = "no_key";
std::vector<std::string> values(20,"Temporary data to be overwritten");

View File

@ -291,10 +291,9 @@ TEST(StringAppendOperatorTest,BIGRandomMixGetAppend) {
TEST(StringAppendOperatorTest,PersistentVariousKeys) {
DestroyDB(kDbName, Options()); // Start this test with a fresh DB
StringAppendOperator append_op('\n');
// Perform the following operations in limited scope
{
StringAppendOperator append_op('\n');
auto db = OpenDb(&append_op);
StringLists slists(db);
@ -318,6 +317,7 @@ TEST(StringAppendOperatorTest,PersistentVariousKeys) {
// Reopen the database (the previous changes should persist / be remembered)
{
StringAppendOperator append_op('\n');
auto db = OpenDb(&append_op);
StringLists slists(db);