Skip to content

Commit

Permalink
Don't leak data returned by opendir
Browse files Browse the repository at this point in the history
  • Loading branch information
nbougalis committed Sep 6, 2014
1 parent d1cfb71 commit 9f8aa09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util/ldb_cmd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ void ManifestDumpCommand::DoCommand() {
} else {
exec_state_ = LDBCommandExecuteResult::FAILED(
"Multiple MANIFEST files found; use --path to select one");
closedir(d);
return;
}
}
Expand Down

0 comments on commit 9f8aa09

Please sign in to comment.