CheckMemoryLeak: Got rid of false positives
This commit is contained in:
parent
0575781a67
commit
8260cf459a
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user