From 8f8eb4f1c0dda92efe24d3a644dbbd9bfedd6800 Mon Sep 17 00:00:00 2001 From: Maysam Yabandeh Date: Tue, 6 Feb 2018 14:17:18 -0800 Subject: [PATCH] Fix leak report by asan on DuplicateKeys test Summary: Deletes the transaction object at the end of the test. Verified by: - COMPILE_WITH_ASAN=1 make -j32 transaction_test - ./transaction_test --gtest_filter="DBA**Duplicate*" Closes https://github.com/facebook/rocksdb/pull/3470 Differential Revision: D6916473 Pulled By: maysamyabandeh fbshipit-source-id: 8303df25408635d5d3ac2b25f309a3d15957c937 --- utilities/transactions/transaction_test.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/utilities/transactions/transaction_test.cc b/utilities/transactions/transaction_test.cc index d80dd05d04..9fb8a85930 100644 --- a/utilities/transactions/transaction_test.cc +++ b/utilities/transactions/transaction_test.cc @@ -5255,6 +5255,7 @@ TEST_P(TransactionTest, DuplicateKeys) { txn0->SetSavePoint(); txn0->RollbackToSavePoint(); ASSERT_OK(txn0->Commit()); + delete txn0; } }