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)
|
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,
|
reportError(tok,
|
||||||
Severity::information,
|
Severity::information,
|
||||||
"leakconfiguration",
|
"leakconfiguration",
|
||||||
|
|
Loading…
Reference in New Issue