summaryrefslogtreecommitdiff
path: root/posix/regcomp.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-11-06 19:23:35 +0000
committerUlrich Drepper <drepper@redhat.com>2002-11-06 19:23:35 +0000
commitb14993a2356cd7b8c3f74ca2b8e743c056f9401d (patch)
treea29377e0387be93dd5c90c82f1b58cf79983bf1e /posix/regcomp.c
parent4f45afaa9ad174130c99b1371e3b13832a6c2107 (diff)
downloadglibc-b14993a2356cd7b8c3f74ca2b8e743c056f9401d.tar.gz
(free_dfa_content): Use free_state.
Diffstat (limited to 'posix/regcomp.c')
-rw-r--r--posix/regcomp.c10
1 files changed, 1 insertions, 9 deletions
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);
}