From: Remi Gacogne Date: Wed, 12 Sep 2018 11:29:05 +0000 (+0200) Subject: rec: Cleanup the netmask trees used for the ECS index on removals X-Git-Tag: dnsdist-1.3.3~106^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6960%2Fhead;p=thirdparty%2Fpdns.git rec: Cleanup the netmask trees used for the ECS index on removals Otherwise the intermediary nodes will remain and consume memory until the tree is deleted from the index, which might never happen if we still have active entries for this specific qname and qtype. --- diff --git a/pdns/recursor_cache.hh b/pdns/recursor_cache.hh index 163465be88..9b4f3f6e07 100644 --- a/pdns/recursor_cache.hh +++ b/pdns/recursor_cache.hh @@ -107,7 +107,7 @@ private: class ECSIndexEntry { public: - ECSIndexEntry(const DNSName& qname, uint16_t qtype): d_qname(qname), d_qtype(qtype) + ECSIndexEntry(const DNSName& qname, uint16_t qtype): d_nmt(true), d_qname(qname), d_qtype(qtype) { }