diff --git a/db/db_impl_debug.cc b/db/db_impl_debug.cc index 5f7a4818d..3446571eb 100644 --- a/db/db_impl_debug.cc +++ b/db/db_impl_debug.cc @@ -155,6 +155,7 @@ void* DBImpl::TEST_BeginWrite() { void DBImpl::TEST_EndWrite(void* w) { auto writer = reinterpret_cast(w); EndWrite(writer, writer, Status::OK()); + delete writer; } } // namespace rocksdb