From b14993a2356cd7b8c3f74ca2b8e743c056f9401d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 6 Nov 2002 19:23:35 +0000 Subject: (free_dfa_content): Use free_state. --- posix/regcomp.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'posix') diff --git a/posix/regcomp.c b/posix/regcomp.c index 4655329267..3cf07b17d4 100644 --- a/posix/regcomp.c +++ b/posix/regcomp.c @@ -602,15 +602,7 @@ free_dfa_content (re_dfa_t *dfa) for (j = 0; j < entry->num; ++j) { re_dfastate_t *state = entry->array[j]; - if (state->entrance_nodes != &state->nodes) - { - re_node_set_free (state->entrance_nodes); - re_free (state->entrance_nodes); - } - re_node_set_free (&state->nodes); - re_free (state->trtable); - re_free (state->trtable_search); - re_free (state); + free_state (state); } re_free (entry->array); } -- cgit v1.2.3