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