Memory leaks: fix endless loop for 'if )'. the check assumed that the link after the 'if' pointed forwards. Ticket: #2404
This commit is contained in:
parent
daf0c71f77
commit
69c3287e31
|
@ -1140,7 +1140,7 @@ Token *CheckMemoryLeakInFunction::getcode(const Token *tok, std::list<const Toke
|
||||||
}
|
}
|
||||||
|
|
||||||
// if else switch
|
// if else switch
|
||||||
if (tok->str() == "if")
|
if (Token::simpleMatch(tok, "if ("))
|
||||||
{
|
{
|
||||||
if (alloctype == Fd)
|
if (alloctype == Fd)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue