Memory leaks: don't write debug warning for '; alloc ; dealloc ; return ; }'

This commit is contained in:
Daniel Marjamäki 2010-09-11 21:14:20 +02:00
parent d4e045cee5
commit 424fe064cb
1 changed files with 1 additions and 0 deletions

View File

@ -2221,6 +2221,7 @@ void CheckMemoryLeakInFunction::checkScope(const Token *Tok1, const std::string
noerr |= Token::simpleMatch(first, "alloc ; return use ; }");
noerr |= Token::simpleMatch(first, "alloc ; use ; }");
noerr |= Token::simpleMatch(first, "alloc ; use ; return ; }");
noerr |= Token::simpleMatch(first, "alloc ; dealloc ; return ; }");
noerr |= Token::simpleMatch(first, "if alloc ; dealloc ; }");
noerr |= Token::simpleMatch(first, "if alloc ; return use ; }");
noerr |= Token::simpleMatch(first, "if alloc ; use ; }");