]> granicus.if.org Git - pdns/commitdiff
geoipbackend: Avoid expensive destroy during initialization
authorAki Tuomi <cmouse@cmouse.fi>
Thu, 10 May 2018 18:06:11 +0000 (21:06 +0300)
committerAki Tuomi <cmouse@cmouse.fi>
Thu, 10 May 2018 18:06:11 +0000 (21:06 +0300)
modules/geoipbackend/geoipbackend.cc

index 6bab3c4fe5cc2fc79601ac948efb6461f4a36c76..11173c0a610e2edf3aa5688b9c72110f08458405 100644 (file)
@@ -277,7 +277,7 @@ void GeoIPBackend::initialize() {
       }
     }
 
-    tmp_domains.push_back(dom);
+    tmp_domains.push_back(std::move(dom));
   }
 
   s_domains.clear();