flow: don't call scope_guard hooks twice at the end of functions
commitd32b2bbc58dd294c9b129b466b62700924a3ad2b
authorDan Carpenter <dan.carpenter@linaro.org>
Fri, 1 Dec 2023 12:09:10 +0000 (1 15:09 +0300)
committerDan Carpenter <dan.carpenter@linaro.org>
Fri, 1 Dec 2023 12:09:10 +0000 (1 15:09 +0300)
tree7ad8e0b00638086aa1d68af6117abf748220b145
parentf6a486e692c950cb248c953a35634acb6d9e4059
flow: don't call scope_guard hooks twice at the end of functions

When we call END_FUNC_HOOK the __cur_stree should be empty so calling
the scope hooks shouldn't do anything I think.  However, it's also
pointless and wrong so let's not do that, but just free them instead.
(The previous code used to call them and then free them).

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