From: Otto Moerbeek Date: Wed, 6 Apr 2022 13:17:33 +0000 (+0200) Subject: Add coverity annotations for a leaks false positives, as a model requires much more... X-Git-Tag: auth-4.8.0-alpha0~143^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11532%2Fhead;p=thirdparty%2Fpdns.git Add coverity annotations for a leaks false positives, as a model requires much more work --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index a369de3483..189e908f04 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -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 diff --git a/pdns/recursordist/rec-main.cc b/pdns/recursordist/rec-main.cc index 52e25b39cc..ea570f8d7e 100644 --- a/pdns/recursordist/rec-main.cc +++ b/pdns/recursordist/rec-main.cc @@ -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& func) delete resp; resp = nullptr; } + // coverity[leaked_storage] } return ret; }