diff --git a/table/table_test.cc b/table/table_test.cc index 0a6a810fc..61378d771 100644 --- a/table/table_test.cc +++ b/table/table_test.cc @@ -1190,6 +1190,8 @@ class FileChecksumTestHelper { void SetFileChecksumGenerator(FileChecksumGenerator* checksum_generator) { if (file_writer_ != nullptr) { file_writer_->TEST_SetFileChecksumGenerator(checksum_generator); + } else { + delete checksum_generator; } }