expressions: free allocated expressions after the end of the function
commitbb13f6843796c3bd8f58af695745e72b61ed30f3
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 6 Mar 2018 14:03:16 +0000 (6 17:03 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 6 Mar 2018 14:04:46 +0000 (6 17:04 +0300)
treece8c7c16ccc54eca2c5007594667423b380cf194
parent2ef79c6895f7bf07750a353fe72ccf6c107b60d7
expressions: free allocated expressions after the end of the function

I was worried that maybe we allocated a lot of expressions.  It turns out
that we don't so this doesn't matter.  Anyway, I've fixed the leak.

I had to change smatch_about_fn_ptr_arg.c to prevent a use after free.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_about_fn_ptr_arg.c
smatch_expressions.c
smatch_extra.h
smatch_states.c