rocksdb/table/plain
Peter Dillinger 27a124571f Fix memory leak on error opening PlainTable (#5951)
Summary:
Several error paths in opening of a plain table would leak memory. PR https://github.com/facebook/rocksdb/issues/5940 opened the leak to one more error path, which happens to have been (mistakenly) exercised by CuckooTableDBTest.AdaptiveTable. That test has been fixed, and the exercising of
plain table error cases (more than before) has been added as BadOptions1 and BadOptions2
to PlainTableDBTest. This effectively moved the memory leak to plain_table_db_test.

Also here is a cheap fix for the memory leak, without (yet?) changing the signature of
ReadTableProperties. This fixes ASAN on unit tests.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5951

Test Plan: make COMPILE_WITH_ASAN=1 check

Differential Revision: D18051940

Pulled By: pdillinger

fbshipit-source-id: e2952930c09a2b46c4f1ff09818c5090426929de
2019-10-21 16:53:06 -07:00
..
plain_table_bloom.cc Apply formatter to recent 200+ commits. (#5830) 2019-09-20 12:04:26 -07:00
plain_table_bloom.h Apply formatter to recent 200+ commits. (#5830) 2019-09-20 12:04:26 -07:00
plain_table_builder.cc Divide file_reader_writer.h and .cc (#5803) 2019-09-16 10:33:51 -07:00
plain_table_builder.h Use delete to disable automatic generated methods. (#5009) 2019-09-11 18:09:00 -07:00
plain_table_factory.cc Organizing rocksdb/table directory by format 2019-05-30 14:51:11 -07:00
plain_table_factory.h Organizing rocksdb/table directory by format 2019-05-30 14:51:11 -07:00
plain_table_index.cc simplify include directive involving inttypes (#5402) 2019-06-06 13:56:07 -07:00
plain_table_index.h Move some memory related files from util/ to memory/ (#5382) 2019-05-30 17:44:09 -07:00
plain_table_key_coding.cc Divide file_reader_writer.h and .cc (#5803) 2019-09-16 10:33:51 -07:00
plain_table_key_coding.h Move some memory related files from util/ to memory/ (#5382) 2019-05-30 17:44:09 -07:00
plain_table_reader.cc Fix memory leak on error opening PlainTable (#5951) 2019-10-21 16:53:06 -07:00
plain_table_reader.h Fix PlainTableReader not to crash sst_dump (#5940) 2019-10-18 14:44:42 -07:00