]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - modules/lua2backend/lua2backend.cc
auth: Wrap backend factories in smart pointers
[thirdparty/pdns.git] / modules / lua2backend / lua2backend.cc
index 9a596e0ac15ad9528712fe9a169c09f562cfd685..a00f6c25eb17f61cd4575684a3c204c484ae2791 100644 (file)
@@ -62,7 +62,7 @@ class Lua2Loader
 public:
   Lua2Loader()
   {
-    BackendMakers().report(new Lua2Factory);
+    BackendMakers().report(std::make_unique<Lua2Factory>());
 
     g_log << Logger::Info << "[lua2backend] This is the lua2 backend version " VERSION
 #ifndef REPRODUCIBLE