Fix the valgrind error in table test.

main
Kai Liu 11 years ago
parent b8ea5e36b3
commit 9a270f3f6d
  1. 2
      table/table_test.cc

@ -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);

Loading…
Cancel
Save