states: fix some leaks of the fake_cur_slist
commitef7db003c14661b23d5259f68dc372e1016b7b63
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 21 May 2013 12:38:22 +0000 (21 15:38 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 21 May 2013 12:38:22 +0000 (21 15:38 +0300)
tree8556d4fc0bd7a8d4fe870536ccf8fd4be50e9c1b
parenteee8989b072e4e6c8d0efabe4ce2fb3a0bae2838
states: fix some leaks of the fake_cur_slist

When we call __pop_fake_cur_slist() then we need to free the result.  I
have also added a new function __free_fake_cur_slist() which pops it and
then frees it immediately.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch.h
smatch_conditions.c
smatch_db.c
smatch_function_hooks.c
smatch_math.c
smatch_states.c