memory leak : fixed false positive for "list << data"

This commit is contained in:
Daniel Marjamäki 2008-12-28 21:02:11 +00:00
parent 7f1b98d7ae
commit 6c8c4d7a63
1 changed files with 1 additions and 1 deletions

View File

@ -579,7 +579,7 @@ TOKEN *CheckMemoryLeakClass::getcode(const TOKEN *tok, std::list<const TOKEN *>
// Assignment..
if ( TOKEN::Match(tok,"[)=] %var1% [+;)]", varnames) ||
TOKEN::Match(tok, "%var1% +=|-=", varnames) ||
TOKEN::Match(tok, "+= %var1% ;", varnames) )
TOKEN::Match(tok, "+=|<< %var1% ;", varnames) )
addtoken("use");
// Investigate function calls..