From 4d82cc5957978aad3b291b711f9e9d7653362155 Mon Sep 17 00:00:00 2001 From: UjinT34 <41110182+UjinT34@users.noreply.github.com> Date: Mon, 29 Sep 2025 15:10:15 +0300 Subject: internal: fix clang-tidy "errors" (#11862) --- src/config/ConfigManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/config/ConfigManager.cpp') diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index c238a9ee..cbf1fcd5 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -3016,11 +3016,11 @@ std::optional CConfigManager::handleSource(const std::string& comma return "source= path " + rawpath + " bogus!"; } - std::unique_ptr glob_buf{sc(calloc(1, sizeof(glob_t))), // allocate and zero-initialize + std::unique_ptr glob_buf{sc(calloc(1, sizeof(glob_t))), // allocate and zero-initialize NOLINT(cppcoreguidelines-no-malloc) [](glob_t* g) { if (g) { globfree(g); // free internal resources allocated by glob() - free(g); // free the memory for the glob_t structure + free(g); // free the memory for the glob_t structure NOLINT(cppcoreguidelines-no-malloc) } }}; -- cgit v1.2.3