diff options
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/shell/bench.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/shell/bench.cpp b/src/mongo/shell/bench.cpp index c0d9a876b4e..ce0a853bf2b 100644 --- a/src/mongo/shell/bench.cpp +++ b/src/mongo/shell/bench.cpp @@ -395,9 +395,9 @@ void BenchRunConfig::initializeToDefaults() { } BenchRunConfig* BenchRunConfig::createFromBson(const BSONObj& args) { - BenchRunConfig* config = new BenchRunConfig(); + auto config = std::make_unique<BenchRunConfig>(); config->initializeFromBson(args); - return config; + return config.release(); } BenchRunOp opFromBson(const BSONObj& op) { |