memory leaks : bug fix
This commit is contained in:
parent
5a91a2ea12
commit
b8e0ea81a6
|
@ -573,7 +573,7 @@ TOKEN *CheckMemoryLeakClass::getcode(const TOKEN *tok, std::list<const TOKEN *>
|
||||||
{
|
{
|
||||||
for ( const TOKEN *tok2 = tok->tokAt(5); tok2; tok2 = tok2->next() )
|
for ( const TOKEN *tok2 = tok->tokAt(5); tok2; tok2 = tok2->next() )
|
||||||
{
|
{
|
||||||
if ( TOKEN::Match(tok2, ";{") )
|
if ( TOKEN::Match(tok2, "[;{]") )
|
||||||
break;
|
break;
|
||||||
else if ( tok2->str() == varname )
|
else if ( tok2->str() == varname )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue