From 7db35c6e3264bcc079d30b8cac27c1879684c5a7 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Wed, 6 Apr 2022 15:17:33 +0200 Subject: [PATCH] Add coverity annotations for a leaks false positives, as a model requires much more work --- pdns/pdns_recursor.cc | 2 ++ pdns/recursordist/rec-main.cc | 2 ++ 2 files changed, 4 insertions(+) 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; } -- 2.47.2