From 9760c842cea96dcca0049209b413a7721f179311 Mon Sep 17 00:00:00 2001 From: agiardullo Date: Wed, 6 Jan 2016 17:59:00 -0800 Subject: [PATCH] fix valgrind failure in backupable_db_test Summary: fix memory leak in test code Test Plan: ran test Reviewers: rven, igor, sdong Reviewed By: sdong Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D52617 --- utilities/backupable/backupable_db_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utilities/backupable/backupable_db_test.cc b/utilities/backupable/backupable_db_test.cc index 68b5f42868..a41b4094f8 100644 --- a/utilities/backupable/backupable_db_test.cc +++ b/utilities/backupable/backupable_db_test.cc @@ -1321,6 +1321,8 @@ TEST_F(BackupableDBTest, Issue921Test) { backupable_options_->backup_dir += "/new_dir"; ASSERT_OK(BackupEngine::Open(env_, *backupable_options_, &backup_engine)); + + delete backup_engine; } } // anon namespace