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
This commit is contained in:
Maysam Yabandeh 2018-02-06 14:17:18 -08:00 committed by Facebook Github Bot
parent 81736d8afe
commit 8f8eb4f1c0

View File

@ -5255,6 +5255,7 @@ TEST_P(TransactionTest, DuplicateKeys) {
txn0->SetSavePoint();
txn0->RollbackToSavePoint();
ASSERT_OK(txn0->Commit());
delete txn0;
}
}