MemoryLeak: minor updates

This commit is contained in:
Daniel Marjamäki 2008-10-15 07:04:32 +00:00
parent 1978ac3562
commit 7e18a2f689
1 changed files with 4 additions and 1 deletions

View File

@ -313,7 +313,7 @@ static TOKEN *getcode(const TOKEN *tok, const char varname[])
}
// Assignment..
if ( Match(tok,"[)=] %var1%", varnames) )
if ( Match(tok,"[)=] %var1% [;)]", varnames) )
addtoken("use");
// Function parameter..
@ -322,8 +322,11 @@ static TOKEN *getcode(const TOKEN *tok, const char varname[])
// Linux lists..
if ( Match( tok, "[=(,] & %var1% [.[]", varnames ) )
{
// todo: better checking
addtoken("use");
}
}
return rethead;
}