Fixed #786 (memleak: segmentation fault for 'if TRACE_ON(x)')
This commit is contained in:
parent
ab18f1bd3c
commit
4a66edd408
|
@ -663,7 +663,7 @@ Token *CheckMemoryLeakInFunction::getcode(const Token *tok, std::list<const Toke
|
|||
continue;
|
||||
}
|
||||
|
||||
if (tok->str() == "if")
|
||||
if (Token::simpleMatch(tok, "if ("))
|
||||
{
|
||||
addtoken("if");
|
||||
tok = tok->next()->link();
|
||||
|
|
Loading…
Reference in New Issue