From: Ruben d'Arco Date: Mon, 10 Jun 2013 21:30:30 +0000 (+0200) Subject: Another stab at covercity fix for tinydnsbackend X-Git-Tag: rec-3.6.0-rc1~674^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F860%2Fhead;p=thirdparty%2Fpdns.git Another stab at covercity fix for tinydnsbackend --- diff --git a/modules/tinydnsbackend/tinydnsbackend.cc b/modules/tinydnsbackend/tinydnsbackend.cc index 96a219db81..640f1b803b 100644 --- a/modules/tinydnsbackend/tinydnsbackend.cc +++ b/modules/tinydnsbackend/tinydnsbackend.cc @@ -71,8 +71,8 @@ void TinyDNSBackend::getUpdatedMasters(vector* retDomains) { Lock l(&s_domainInfoLock); //TODO: We could actually lock less if we do it per suffix. if (! s_domainInfo.count(d_suffix)) { - TDI_t *tmp = new TDI_t(); - s_domainInfo.insert( make_pair(d_suffix,*tmp) ); + TDI_t tmp; + s_domainInfo.insert( make_pair(d_suffix,tmp) ); } TDI_t *domains = &s_domainInfo[d_suffix];