]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Add coverity annotations for a leaks false positives, as a model requires much more... 11532/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 6 Apr 2022 13:17:33 +0000 (15:17 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 13 Apr 2022 15:08:17 +0000 (17:08 +0200)
pdns/pdns_recursor.cc
pdns/recursordist/rec-main.cc

index a369de3483c14229780aea2b1234e8a5dc5e768d..189e908f04d1eef919dc5fcc2e7eab41e4dac1a2 100644 (file)
@@ -1803,6 +1803,7 @@ void requestWipeCaches(const DNSName& canon)
 
     unixDie("write to thread pipe returned wrong size or error");
   }
+  // coverity[leaked_storage]
 }
 
 bool expectProxyProtocol(const ComboAddress& from)
@@ -2489,6 +2490,7 @@ void distributeAsyncFunction(const string& packet, const pipefunc_t& func)
       delete tmsg;
     }
   }
+  // coverity[leaked_storage]
 }
 
 // resend event to everybody chained onto it
index 52e25b39cc0e1a245b90f301fe5f3f4e7e16dc28..ea570f8d7e728215751d3e6f2eae9f0181058de3 100644 (file)
@@ -1089,6 +1089,7 @@ void broadcastFunction(const pipefunc_t& func)
       delete resp;
       resp = nullptr;
     }
+    // coverity[leaked_storage]
   }
 }
 
@@ -1149,6 +1150,7 @@ T broadcastAccFunction(const std::function<T*()>& func)
       delete resp;
       resp = nullptr;
     }
+    // coverity[leaked_storage]
   }
   return ret;
 }