From f3d05c1ad79cfcf538b2aa52f427b8366ec4f99b Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Mon, 2 Mar 2009 19:37:55 +0300 Subject: [PATCH] Don't __free_sm_state() until end of function. There isn't any code that calls this function. It would be bad to delete that if it was still in a ->possible list. Signed-off-by: Dan Carpenter --- smatch_slist.c | 1 - 1 file changed, 1 deletion(-) diff --git a/smatch_slist.c b/smatch_slist.c index c674f807..d408b5e3 100644 --- a/smatch_slist.c +++ b/smatch_slist.c @@ -414,7 +414,6 @@ void delete_state_slist(struct state_list **slist, const char *name, int owner, && !strcmp(state->name, name)){ delete_ptr_list_entry((struct ptr_list **)slist, state, 1); - __free_sm_state(state); return; } } END_FOR_EACH_PTR(state); -- 2.11.4.GIT