Memory leaks: bug fix. don't skip '}' by accident
This commit is contained in:
parent
b9a0e10b9a
commit
0624e418f1
|
@ -921,7 +921,7 @@ Token *CheckMemoryLeakInFunction::getcode(const Token *tok, std::list<const Toke
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tok2->varId() == varid ||
|
if (tok2->varId() == varid ||
|
||||||
tok2->str() == ":" || tok2->str() == "{")
|
tok2->str() == ":" || tok2->str() == "{" || tok2->str() == "}")
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue