From: Aki Tuomi Date: Thu, 10 May 2018 18:06:11 +0000 (+0300) Subject: geoipbackend: Avoid expensive destroy during initialization X-Git-Tag: dnsdist-1.3.1~99^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60a1302a0d81a1ba4125f94787c1f9c59df10b28;p=pdns geoipbackend: Avoid expensive destroy during initialization --- diff --git a/modules/geoipbackend/geoipbackend.cc b/modules/geoipbackend/geoipbackend.cc index 6bab3c4fe..11173c0a6 100644 --- a/modules/geoipbackend/geoipbackend.cc +++ b/modules/geoipbackend/geoipbackend.cc @@ -277,7 +277,7 @@ void GeoIPBackend::initialize() { } } - tmp_domains.push_back(dom); + tmp_domains.push_back(std::move(dom)); } s_domains.clear();