From: Remi Gacogne Date: Mon, 13 Nov 2023 14:37:29 +0000 (+0100) Subject: dnsdist: FFS, clang-tidy, I already told you RAII was not an option here X-Git-Tag: rec-5.0.0-rc1~31^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbec9e5eca3d2b0d0b66f5cbeea0be6bafe39eb3;p=thirdparty%2Fpdns.git dnsdist: FFS, clang-tidy, I already told you RAII was not an option here --- diff --git a/pdns/dnsdistdist/dnsdist-lua-ffi.cc b/pdns/dnsdistdist/dnsdist-lua-ffi.cc index 8133633071..1ec5c03782 100644 --- a/pdns/dnsdistdist/dnsdist-lua-ffi.cc +++ b/pdns/dnsdistdist/dnsdist-lua-ffi.cc @@ -1870,9 +1870,9 @@ void dnsdist_ffi_dynamic_blocks_list_free(dnsdist_ffi_dynamic_blocks_list_t* lis } for (auto& entry : list->d_entries) { - // NOLINTNEXTLINE(cppcoreguidelines-owning-memory): this is a C API, RAII is not an option + // NOLINTNEXTLINE(cppcoreguidelines-owning-memory,cppcoreguidelines-no-malloc): this is a C API, RAII is not an option free(entry.key); - // NOLINTNEXTLINE(cppcoreguidelines-owning-memory): this is a C API, RAII is not an option + // NOLINTNEXTLINE(cppcoreguidelines-owning-memory,cppcoreguidelines-no-malloc): this is a C API, RAII is not an option free(entry.reason); }