summaryrefslogtreecommitdiff
path: root/src/mongo/scripting
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/scripting')
-rw-r--r--src/mongo/scripting/engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/scripting/engine.cpp b/src/mongo/scripting/engine.cpp
index d1a97725786..0c477a24c11 100644
--- a/src/mongo/scripting/engine.cpp
+++ b/src/mongo/scripting/engine.cpp
@@ -199,7 +199,7 @@ public:
};
void Scope::storedFuncMod(OperationContext* opCtx) {
- opCtx->recoveryUnit()->registerChange(new StoredFuncModLogOpHandler());
+ opCtx->recoveryUnit()->registerChange(std::make_unique<StoredFuncModLogOpHandler>());
}
void Scope::validateObjectIdString(const string& str) {