diff --git a/src/checkmemoryleak.cpp b/src/checkmemoryleak.cpp index 9cc3f0daa..b621d7427 100644 --- a/src/checkmemoryleak.cpp +++ b/src/checkmemoryleak.cpp @@ -663,7 +663,7 @@ Token *CheckMemoryLeakInFunction::getcode(const Token *tok, std::liststr() == "if") + if (Token::simpleMatch(tok, "if (")) { addtoken("if"); tok = tok->next()->link();