Memory leak: Fixed unit tests that were broken by mistake by my previous commit
This commit is contained in:
parent
27003e72b8
commit
cad2e80897
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue