CheckMemoryLeak: Got rid of false positives

This commit is contained in:
Daniel Marjamäki 2008-08-16 13:13:36 +00:00
parent 0575781a67
commit 8260cf459a

View File

@ -569,6 +569,9 @@ static TOKEN *getcode(const TOKEN *tok, const char varname[])
// Function parameter.. // Function parameter..
if ( Match(tok, "[(,] %var1% [,)]", varnames) ) if ( Match(tok, "[(,] %var1% [,)]", varnames) )
addtoken("use"); addtoken("use");
if ( Match( tok, "[=(,] & %var1% .", varnames ) )
addtoken("use");
} }
return rethead; return rethead;