states: preserve out of scope states
commit31f3cf7ab919dabac3f58d034c61a331b8e5b761
authorDan Carpenter <dan.carpenter@linaro.org>
Fri, 5 Jan 2024 09:27:34 +0000 (5 12:27 +0300)
committerDan Carpenter <dan.carpenter@linaro.org>
Fri, 5 Jan 2024 09:27:34 +0000 (5 12:27 +0300)
tree1873e380f631c236c6e639236c532d92f344521d
parentad5ae9adf0a231d67f74790a597ac42f1b4c2ece
states: preserve out of scope states

Smatch discards out of scope variables.  This is to saves memory and it's
generally the right thing to do.  But in cases where we're looking at
the return states then actually we probably don't want to throw those
states away.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
check_refcount_inconsistent_returns.c
smatch.h
smatch_states.c