dns: fix dnsc_conf_set memory leak
@@ -1236,6 +1236,10 @@ int dnsc_conf_set(struct dnsc *dnsc, const struct dnsc_conf *conf)
else
dnsc->conf = default_conf;
+ list_flush(&dnsc->hdl_cache);
+
+ hash_flush(dnsc->ht_tcpconn);
+ hash_flush(dnsc->ht_query_cache);
dnsc->ht_query = mem_deref(dnsc->ht_query);
dnsc->ht_query_cache = mem_deref(dnsc->ht_query_cache);
