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
1 changed files with 3 additions and 0 deletions

View File

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