Fix the valgrind error in table test.

This commit is contained in:
Kai Liu 2014-02-07 22:43:58 -08:00
parent b8ea5e36b3
commit 9a270f3f6d
1 changed files with 1 additions and 1 deletions

View File

@ -1237,10 +1237,10 @@ TEST(PlainTableTest, BasicPlainTableProperties) {
StringSource source(sink.contents(), 72242, true);
TableProperties* props = nullptr;
std::unique_ptr<TableProperties> props_guard;
auto s = ReadTableProperties(&source, sink.contents().size(),
kPlainTableMagicNumber, Env::Default(), nullptr,
&props);
std::unique_ptr<TableProperties> props_guard(props);
ASSERT_OK(s);
ASSERT_EQ(0ul, props->index_size);