diff --git a/tools/db_stress.cc b/tools/db_stress.cc index 2c4d20eee..2e84e8eb4 100644 --- a/tools/db_stress.cc +++ b/tools/db_stress.cc @@ -1794,6 +1794,7 @@ class StressTest { s = FLAGS_env->GetChildren(checkpoint_dir, &files); } DestroyDB(checkpoint_dir, Options()); + delete checkpoint; if (!s.ok()) { printf("A checkpoint operation failed with: %s\n", s.ToString().c_str());