Skip to content

Commit 9f8aa09

Browse files
committed
Don't leak data returned by opendir
1 parent d1cfb71 commit 9f8aa09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

util/ldb_cmd.cc

+1
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@ void ManifestDumpCommand::DoCommand() {
541541
} else {
542542
exec_state_ = LDBCommandExecuteResult::FAILED(
543543
"Multiple MANIFEST files found; use --path to select one");
544+
closedir(d);
544545
return;
545546
}
546547
}

0 commit comments

Comments
 (0)