diff --git a/lib/checkleakautovar.cpp b/lib/checkleakautovar.cpp index 99eaa84a2..a0b6fa8c1 100644 --- a/lib/checkleakautovar.cpp +++ b/lib/checkleakautovar.cpp @@ -85,7 +85,7 @@ void CheckLeakAutoVar::doubleDeallocationError(const Token *tok, const std::stri void CheckLeakAutoVar::configurationInfo(const Token* tok, const std::string &functionName) { - if ((!cfgalloc.empty() || !cfgdealloc.empty()) && _settings->isEnabled("style")) { + if (((!cfgalloc.empty() || !cfgdealloc.empty()) && _settings->isEnabled("style")) || _settings->experimental) { reportError(tok, Severity::information, "leakconfiguration",