diff --git a/CheckMemoryLeak.cpp b/CheckMemoryLeak.cpp index d6aa8a62f..f6bda1d7d 100644 --- a/CheckMemoryLeak.cpp +++ b/CheckMemoryLeak.cpp @@ -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") ) {