states: use the state from the fake assignment
commite465a8870d683247bb6b23f3bcfb8391f29b6c79
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 16 Dec 2020 12:55:39 +0000 (16 15:55 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 16 Dec 2020 12:55:39 +0000 (16 15:55 +0300)
tree3219c713ea591a5d63be00be0bdccae11e8461c2
parentc80a6645a6ccd5d2cb87322d48fd116105b09900
states: use the state from the fake assignment

There was no reason for this, it just seemed like an good idea so I
did it.

The problem was that inline functions get parsed more than once so it led
to double frees.  So I added a check for that.  Otherwise, I didn't notice
any difference in the output.  But I'm only looking at bad output so maybe
it made it better and I didn't notice.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_flow.c
smatch_states.c
symbol.h