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:
Daniel Marjamäki 2011-07-31 19:38:39 +02:00
parent daf0c71f77
commit 69c3287e31
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{ {