memory leaks : bug fix

This commit is contained in:
Daniel Marjamäki 2008-12-23 08:25:16 +00:00
parent 5a91a2ea12
commit b8e0ea81a6
1 changed files with 1 additions and 1 deletions

View File

@ -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() )
{
if ( TOKEN::Match(tok2, ";{") )
if ( TOKEN::Match(tok2, "[;{]") )
break;
else if ( tok2->str() == varname )
{