diff --git a/util/ldb_cmd.cc b/util/ldb_cmd.cc index aef84fa35..53e15e0ba 100644 --- a/util/ldb_cmd.cc +++ b/util/ldb_cmd.cc @@ -541,6 +541,7 @@ void ManifestDumpCommand::DoCommand() { } else { exec_state_ = LDBCommandExecuteResult::FAILED( "Multiple MANIFEST files found; use --path to select one"); + closedir(d); return; } }