Memory leak: Minor update to make the checking stronger

This commit is contained in:
Daniel Marjamäki 2008-11-19 18:57:35 +00:00
parent 7a048cf35e
commit 2e445b195c
1 changed files with 3 additions and 2 deletions

View File

@ -588,8 +588,9 @@ void CheckMemoryLeakClass::simplifycode(TOKEN *tok)
// Delete empty if that is not followed by an else
if ( Match(tok2,"[;{}] if ;") ||
Match(tok2,"[;{}] if(var) ;") ||
Match(tok2,"[;{}] if(!var) ;") )
Match(tok2,"[;{}] if(var) ;") ||
Match(tok2,"[;{}] if(!var) ;") ||
Match(tok2,"[;{}] ifv ;") )
{
if ( ! Match(Tokenizer::gettok(tok2,3), "else") )
{