Memory leak: Minor update to make the checking stronger
This commit is contained in:
parent
7a048cf35e
commit
2e445b195c
|
@ -589,7 +589,8 @@ void CheckMemoryLeakClass::simplifycode(TOKEN *tok)
|
||||||
// Delete empty if that is not followed by an else
|
// Delete empty if that is not followed by an else
|
||||||
if ( Match(tok2,"[;{}] if ;") ||
|
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") )
|
if ( ! Match(Tokenizer::gettok(tok2,3), "else") )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue