Memory leak: Minor update to make the checking stronger
This commit is contained in:
parent
7a048cf35e
commit
2e445b195c
@ -588,8 +588,9 @@ 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…
x
Reference in New Issue
Block a user