mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-26 16:30:56 +00:00
Fix the valgrind error in table test.
This commit is contained in:
parent
b8ea5e36b3
commit
9a270f3f6d
|
@ -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…
Reference in a new issue