From 9a270f3f6d3767bfe7e505593e58eed4b180578c Mon Sep 17 00:00:00 2001 From: Kai Liu Date: Fri, 7 Feb 2014 22:43:58 -0800 Subject: [PATCH] Fix the valgrind error in table test. --- table/table_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/table/table_test.cc b/table/table_test.cc index 965ecaa8d..15d4edcb0 100644 --- a/table/table_test.cc +++ b/table/table_test.cc @@ -1237,10 +1237,10 @@ TEST(PlainTableTest, BasicPlainTableProperties) { StringSource source(sink.contents(), 72242, true); TableProperties* props = nullptr; - std::unique_ptr props_guard; auto s = ReadTableProperties(&source, sink.contents().size(), kPlainTableMagicNumber, Env::Default(), nullptr, &props); + std::unique_ptr props_guard(props); ASSERT_OK(s); ASSERT_EQ(0ul, props->index_size);