fix valgrind

Summary: Closes https://github.com/facebook/rocksdb/pull/1526

Differential Revision: D4191257

Pulled By: ajkr

fbshipit-source-id: d09dc76
main
Andrew Kryczka 8 years ago committed by Facebook Github Bot
parent 715591bba0
commit 327085b7b2
  1. 3
      table/block_based_table_reader.cc

@ -1966,7 +1966,7 @@ Status BlockBasedTable::DumpTable(WritableFile* out_file) {
return s; return s;
} }
// Output range deletions block // Output range deletions block
auto range_del_iter = NewRangeTombstoneIterator(ReadOptions()); auto* range_del_iter = NewRangeTombstoneIterator(ReadOptions());
range_del_iter->SeekToFirst(); range_del_iter->SeekToFirst();
if (range_del_iter->Valid()) { if (range_del_iter->Valid()) {
out_file->Append( out_file->Append(
@ -1978,6 +1978,7 @@ Status BlockBasedTable::DumpTable(WritableFile* out_file) {
} }
out_file->Append("\n"); out_file->Append("\n");
} }
delete range_del_iter;
// Output Data blocks // Output Data blocks
s = DumpDataBlocks(out_file); s = DumpDataBlocks(out_file);

Loading…
Cancel
Save