// work, we give up. For reused connections, we assume the
// peer has closed it on error, so we retry. At some point we
// *will* get a new connection, so this loop is not endless.
- isNew = true; // tcpconnect() might throw for new connections. In that case, we want to break the loop
+ isNew = true; // tcpconnect() might throw for new connections. In that case, we want to break the loop, scanbuild complains here, which is a false positive afaik
std::string nsName;
if (context && !context->d_nsName.empty()) {
nsName = context->d_nsName.toStringNoDot();
try {
res.record_count = g_recCache->doWipeCache(canon, subtree, qtype);
+ // scanbuild complains here about an allocated function object that is being leaked. Needs investigation
res.packet_count = broadcastAccFunction<uint64_t>([=] { return pleaseWipePacketCache(canon, subtree, qtype); });
res.negative_record_count = g_negCache->wipe(canon, subtree);
if (g_aggressiveNSECCache) {