memory leak : fixed false positive for "list << data"
This commit is contained in:
parent
7f1b98d7ae
commit
6c8c4d7a63
|
@ -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..
|
||||
|
|
Loading…
Reference in New Issue