From 84a5e3822f869c7c965c50f6309bb3951f092970 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 12 Sep 2018 13:29:05 +0200 Subject: [PATCH] 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. --- pdns/recursor_cache.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { } -- 2.47.2