diff options
| author | UjinT34 <41110182+UjinT34@users.noreply.github.com> | 2025-09-29 15:10:15 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-29 13:10:15 +0100 |
| commit | 4d82cc5957978aad3b291b711f9e9d7653362155 (patch) | |
| tree | 6ce5c3fad79aa3572384dc780c19fd378250d310 /src/config/ConfigManager.cpp | |
| parent | 43fb4753fcc5ed1eb0c3341b690f72574faa02bc (diff) | |
internal: fix clang-tidy "errors" (#11862)
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<std::string> CConfigManager::handleSource(const std::string& comma return "source= path " + rawpath + " bogus!"; } - std::unique_ptr<glob_t, void (*)(glob_t*)> glob_buf{sc<glob_t*>(calloc(1, sizeof(glob_t))), // allocate and zero-initialize + std::unique_ptr<glob_t, void (*)(glob_t*)> glob_buf{sc<glob_t*>(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) } }}; |
